Skip to content

Commit

Permalink
fix(tests): retrieve default flow after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
acostapazo committed Aug 17, 2023
1 parent 16d020c commit 89fdcdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/onboarding_with_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def configure_webhooks(api_key: str, verbose: Optional[bool] = False) -> None:
api_key="b0b905d6-228f-44bf-a130-c85d7aecd765",
event_name="user_created",
event_version="1",
algorithm="sha512",
algorithm="sha256",
secret=str(secrets.token_hex(20)),
)
webhooks_client.update_webhook(webhook_to_update).unwrap_or_raise()
Expand Down
5 changes: 2 additions & 3 deletions tests/test_integration_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@ def do_complete_flow() -> Result[bool, Error]:
device_info=DeviceInfo(device_platform="Android"),
).unwrap_or_return()

# default flow
_ = onboarding.retrieve_flow().unwrap_or_return()

flow_id = onboarding.create_flow(
steps=[OnboardingSteps.SELFIE],
default=True,
name="alice-flow-test-onboarding-python",
).unwrap_or_return()

_ = onboarding.retrieve_flow().unwrap_or_return()

_ = onboarding.retrieve_flow(flow_id=flow_id).unwrap_or_return()
_ = onboarding.update_flow(
flow_id=flow_id,
Expand Down

0 comments on commit 89fdcdc

Please sign in to comment.