From d72df13be335736cff08fb6e4334ff1ffbcde520 Mon Sep 17 00:00:00 2001 From: Petros Kalos Date: Fri, 6 Dec 2024 12:12:33 +0200 Subject: [PATCH] fix assert resolver != None order --- tests/test_permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_permissions.py b/tests/test_permissions.py index 03f9c2a12..5fc080e3c 100644 --- a/tests/test_permissions.py +++ b/tests/test_permissions.py @@ -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']