Skip to content

Commit

Permalink
fix assert resolver != None order
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkalos committed Dec 6, 2024
1 parent 6a2fd07 commit d72df13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def test_permissions(
):
fid = request.node.callspec.id.split('-')[-1]
perm, reason = EXPECTED_RESOLVERS[fid].get(perm_type)
assert_that(field.resolver).is_not_none()
msg = f'{fid} -> {field.resolver.__code__.co_filename}:{field.resolver.__code__.co_firstlineno}'
logging.info(msg)
assert_that(field.resolver).is_not_none()
# Setup mock context
username = 'ausername'
groups = ['agroup']
Expand Down

0 comments on commit d72df13

Please sign in to comment.