diff --git a/alice/onboarding/enums/onboarding_steps.py b/alice/onboarding/enums/onboarding_steps.py index 32b41db..e8e4681 100644 --- a/alice/onboarding/enums/onboarding_steps.py +++ b/alice/onboarding/enums/onboarding_steps.py @@ -17,5 +17,5 @@ class OnboardingStepName(str, Enum): class OnboardingStep(BaseModel): - step: OnboardingStepName + name: OnboardingStepName config: Union[Dict[str, Any], None] = None diff --git a/tests/test_integration_flows.py b/tests/test_integration_flows.py index 06e5fec..efeada1 100644 --- a/tests/test_integration_flows.py +++ b/tests/test_integration_flows.py @@ -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)], + steps=[OnboardingStep(name=OnboardingStepName.SELFIE)], default=True, name="test", ) @@ -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)], + steps=[OnboardingStep(name=OnboardingStepName.SELFIE)], default=True, name="test", ) @@ -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)], + steps=[OnboardingStep(name=OnboardingStepName.SELFIE)], default=False, name="alice-flow-test-onboarding-python", ).unwrap_or_return() @@ -62,8 +62,8 @@ def do_complete_flow() -> Result[bool, Error]: _ = onboarding.update_flow( flow_id=flow_id, steps=[ - OnboardingStep(step=OnboardingStepName.SELFIE), - OnboardingStep(step=OnboardingStepName.IDCARD), + OnboardingStep(name=OnboardingStepName.SELFIE), + OnboardingStep(name=OnboardingStepName.IDCARD), ], default=False, name="alice-flow-test-onboarding-python-updated",