diff --git a/api/account/tests/features/profile.feature b/api/account/tests/features/profile.feature index 05f483ab..2c6f2b35 100644 --- a/api/account/tests/features/profile.feature +++ b/api/account/tests/features/profile.feature @@ -5,4 +5,5 @@ Feature: Manage account profiles Scenario: Retrieve authenticated user's account Given an authenticated user When a user requests their profile - Then user profile is returned + Then the request will be successful + And user profile is returned diff --git a/api/account/tests/features/steps/profile.py b/api/account/tests/features/steps/profile.py index 737c905b..946f821e 100644 --- a/api/account/tests/features/steps/profile.py +++ b/api/account/tests/features/steps/profile.py @@ -1,5 +1,4 @@ from datetime import date -from http import HTTPStatus import json from behave import then, when @@ -15,7 +14,6 @@ def call_account_endpoint(context): @then('user profile is returned') def validate_response(context): - assert_that(context.response.status_code, equal_to(HTTPStatus.OK)) response_data = json.loads(context.response.data) assert_that( response_data['emailAddress'],