diff --git a/openedx/api_test.py b/openedx/api_test.py index 29b2ec84a..182bddc0e 100644 --- a/openedx/api_test.py +++ b/openedx/api_test.py @@ -232,7 +232,7 @@ def test_validate_edx_username_conflict(settings, user): """Test that validate_username_email_with_edx handles a username validation conflict""" edx_username_validation_response_mock(True, settings) # noqa: FBT003 - assert validate_username_email_with_edx(user.username) + assert validate_username_email_with_edx(user.username, "example@mit.edu") @responses.activate @@ -249,7 +249,7 @@ def test_validate_edx_username_conflict(settings, user): # noqa: F811 status=status.HTTP_400_BAD_REQUEST, ) with pytest.raises(EdxApiRegistrationValidationException): - validate_username_email_with_edx(user.username) + validate_username_email_with_edx(user.username, "example@mit.edu") @responses.activate