Skip to content

Commit

Permalink
Re-arrange code
Browse files Browse the repository at this point in the history
  • Loading branch information
candleindark committed Apr 15, 2024
1 parent 044a51b commit b13393a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dandischema/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,13 @@ def test_contact_person_without_email(self, roles: List[RoleType]) -> None:
):
Contributor(roleName=roles)

@pytest.mark.parametrize("roles", _NON_CONTACT_PERSON_ROLES_ARGS)
def test_non_contact_person_without_email(self, roles: List[RoleType]) -> None:
"""
Test creating a `Contributor` instance as a non-contact person without an email
"""
Contributor(roleName=roles)

@pytest.mark.parametrize(
"roles", _NON_CONTACT_PERSON_ROLES_ARGS + _CONTACT_PERSON_ROLES_ARGS
)
Expand All @@ -725,10 +732,3 @@ def test_with_email(self, roles: List[RoleType]) -> None:
Test creating a `Contributor` instance with an email
"""
Contributor(email="[email protected]", roleName=roles)

@pytest.mark.parametrize("roles", _NON_CONTACT_PERSON_ROLES_ARGS)
def test_non_contact_person_without_email(self, roles: List[RoleType]) -> None:
"""
Test creating a `Contributor` instance as a non-contact person without an email
"""
Contributor(roleName=roles)

0 comments on commit b13393a

Please sign in to comment.