Skip to content

Commit

Permalink
chore: delete redundant config=None
Browse files Browse the repository at this point in the history
  • Loading branch information
garciagarciaadrian committed Jan 30, 2024
1 parent 05d9202 commit b3f3718
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion alice/onboarding/onboarding_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ def create_flow(
data = {
"default": default,
"name": name,
"steps": [step.model_dump(exclude_none=True) for step in steps],
"steps": [step.model_dump() for step in steps],
}

if id_:
Expand Down
10 changes: 5 additions & 5 deletions tests/test_integration_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_should_return_an_error_when_the_api_key_is_not_configured():
onboarding = Onboarding.from_config(config)

result = onboarding.create_flow(
steps=[OnboardingStep(step=OnboardingStepName.SELFIE, config=None)],
steps=[OnboardingStep(step=OnboardingStepName.SELFIE)],
default=True,
name="test",
)
Expand All @@ -26,7 +26,7 @@ def test_should_timeout_when_time_exceeded(given_valid_api_key):
onboarding = Onboarding.from_config(config)

result = onboarding.create_flow(
steps=[OnboardingStep(step=OnboardingStepName.SELFIE, config=None)],
steps=[OnboardingStep(step=OnboardingStepName.SELFIE)],
default=True,
name="test",
)
Expand All @@ -42,7 +42,7 @@ def do_complete_flow() -> Result[bool, Error]:
onboarding = Onboarding.from_config(config)

flow_id = onboarding.create_flow(
steps=[OnboardingStep(step=OnboardingStepName.SELFIE, config=None)],
steps=[OnboardingStep(step=OnboardingStepName.SELFIE)],
default=False,
name="alice-flow-test-onboarding-python",
).unwrap_or_return()
Expand All @@ -62,8 +62,8 @@ def do_complete_flow() -> Result[bool, Error]:
_ = onboarding.update_flow(
flow_id=flow_id,
steps=[
OnboardingStep(step=OnboardingStepName.SELFIE, config=None),
OnboardingStep(step=OnboardingStepName.IDCARD, config=None),
OnboardingStep(step=OnboardingStepName.SELFIE),
OnboardingStep(step=OnboardingStepName.IDCARD),
],
default=False,
name="alice-flow-test-onboarding-python-updated",
Expand Down

0 comments on commit b3f3718

Please sign in to comment.