Skip to content

Commit f4dfa7e

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

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

openedx_authz/tests/api/test_data.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,15 @@ def test_scope_meta_initializes_registries_when_missing(self):
350350
del ScopeMeta.glob_registry
351351

352352
class TempScope(ScopeData):
353+
"""Temporary scope class for testing."""
353354
NAMESPACE = "temp"
354355

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

0 commit comments

Comments
 (0)