Start creating access objects in a different way
This commit is contained in:
1 parent
3c78aad8b1
commit
15d9e64281
4 files changed
+64
-34
No files matched your search
@@ -74,10 +74,15 @@ def get_faked_with_parent_context(parent_context, name):
|
||||
raise FakeDoesNotExist
|
||||
|
||||
|
||||
def get_faked_tree_nodes(grammar, string_names):
|
||||
module = base = _load_faked_module(grammar, string_names[0])
|
||||
def get_faked_module(grammar, string_name):
|
||||
module = _load_faked_module(grammar, string_name)
|
||||
if module is None:
|
||||
raise FakeDoesNotExist
|
||||
return module
|
||||
|
||||
|
||||
def get_faked_tree_nodes(grammar, string_names):
|
||||
module = base = get_faked_module(grammar, string_names[0])
|
||||
|
||||
tree_nodes = [module]
|
||||
for name in string_names[1:]:
|
||||
|
||||
Reference in new issue
Block a user