Skip to content

Commit

Permalink
Fix mypy: statements are reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Aug 29, 2024
1 parent 32e8798 commit c80281c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/data/model/db/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_add_associations_to_new_group(self, session, make_user_and_role, make_r
group = Group()
session.add(group)
assert group.id is None # group does not exist in database
users = [make_user_and_role()[0] for _ in range(5)]
users = [make_user_and_role()[0] for _ in range(5)] # type: ignore[unreachable]
roles = [make_role() for _ in range(5)]

# users and roles for creating associations
Expand Down Expand Up @@ -363,7 +363,7 @@ def test_add_associations_to_new_user(self, session, make_role, make_group):

session.add(user)
assert user.id is None # user does not exist in database
groups = [make_group() for _ in range(5)]
groups = [make_group() for _ in range(5)] # type: ignore[unreachable]
roles = [make_role() for _ in range(5)]

# groups and roles for creating associations
Expand Down Expand Up @@ -623,7 +623,7 @@ def test_add_associations_to_new_role(self, session, make_user_and_role, make_gr
role = Role()
session.add(role)
assert role.id is None # role does not exist in database
users = [make_user_and_role()[0] for _ in range(5)]
users = [make_user_and_role()[0] for _ in range(5)] # type: ignore[unreachable]
groups = [make_group() for _ in range(5)]

# users and groups for creating associations
Expand Down

0 comments on commit c80281c

Please sign in to comment.