Skip to content

Commit 793d325

Browse files
committed
test: add missing methods to TempScope class
1 parent 129def1 commit 793d325

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

openedx_authz/tests/api/test_data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ def test_scope_meta_initializes_registries_when_missing(self):
352352
class TempScope(ScopeData):
353353
NAMESPACE = "temp"
354354

355+
def get_object(self):
356+
return None
357+
358+
def exists(self) -> bool:
359+
return False
360+
355361
# Metaclass should have recreated the registries on the class
356362
self.assertTrue(hasattr(TempScope, "scope_registry"))
357363
self.assertTrue(hasattr(TempScope, "glob_registry"))

0 commit comments

Comments
 (0)