We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 129def1 commit f4dfa7eCopy full SHA for f4dfa7e
1 file changed
openedx_authz/tests/api/test_data.py
@@ -350,8 +350,15 @@ def test_scope_meta_initializes_registries_when_missing(self):
350
del ScopeMeta.glob_registry
351
352
class TempScope(ScopeData):
353
+ """Temporary scope class for testing."""
354
NAMESPACE = "temp"
355
356
+ def get_object(self):
357
+ return None
358
+
359
+ def exists(self) -> bool:
360
+ return False
361
362
# Metaclass should have recreated the registries on the class
363
self.assertTrue(hasattr(TempScope, "scope_registry"))
364
self.assertTrue(hasattr(TempScope, "glob_registry"))
0 commit comments