✏️(project) fix minor typos

Found typos and fixed them.
This commit is contained in:
Lebaud Antoine
2024-02-02 15:36:24 +01:00
committed by aleb_the_flash
parent ec2fcaa1dd
commit c117f67952
7 changed files with 14 additions and 14 deletions

View File

@@ -140,7 +140,7 @@ class Contact(BaseModel):
try:
jsonschema.validate(self.data, contact_schema)
except jsonschema.ValidationError as e:
# Specify the property in the data in which the error occured
# Specify the property in the data in which the error occurred
field_path = ".".join(map(str, e.path))
error_message = f"Validation error in '{field_path:s}': {e.message}"
raise exceptions.ValidationError({"data": [error_message]}) from e

View File

@@ -8,7 +8,7 @@ from core import factories, models
pytestmark = pytest.mark.django_db
def test_models_oidc_user_getter_exsting_user_no_email(django_assert_num_queries):
def test_models_oidc_user_getter_existing_user_no_email(django_assert_num_queries):
"""
When a valid token is passed, an existing user matching the token's sub should be returned.
"""