inngest / inngest-py

Python SDK for Inngest: Durable functions and workflows in Python, hosted anywhere
https://www.inngest.com/docs/reference/python
Apache License 2.0
27 stars 6 forks source link

Fix `if_exp` is ignored #62

Closed goodoldneon closed 6 months ago

goodoldneon commented 6 months ago

Description

The if_exp field was being ignored because we didn't serialize it to if, which the Inngest server expects.

The fixes are in these 2 files:

The rest of the changes are for tests against regressions

Context

We had to name the field if_exp instead of if because Python doesn't let you use statement keywords (if, for, etc.) as class fields names

Testing

Added automated tests that would've caught this