-
Notifications
You must be signed in to change notification settings - Fork 467
Open
Description
Example of an error:
==================================== ERRORS ====================================
___________ ERROR at setup of test_4eyes_workflow_with_v2_versioning ___________
[gw12] linux -- Python 3.13.11 /home/runner/.cache/pypoetry/virtualenvs/flagsmith-api-h9Rv37Cj-py3.13/bin/python
registered_org_admin_user_email = 'registered_admin_user@example.com'
admin_invite_link_hash = '3ouCU5qZzNqNUgZkFM96Sr'
@pytest.fixture()
def registered_org_admin_user(registered_org_admin_user_email, admin_invite_link_hash):
password = FFAdminUser.objects.make_random_password()
api_client = APIClient()
register_url = reverse("api-v1:custom_auth:ffadminuser-list")
data = {
"email": registered_org_admin_user_email,
"password": password,
"first_name": "Registered",
"last_name": "Admin-User",
}
response = api_client.post(
register_url, data=json.dumps(data), content_type="application/json"
)
> assert response.status_code == status.HTTP_201_CREATED
E assert 400 == 201
E + where 400 = <Response status_code=400, "application/json">.status_code
E + and 201 = status.HTTP_201_CREATED
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels