fix(scada): use project-scoped metadata
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ def install_stub(monkeypatch, name: str, attrs: dict | None = None, package: boo
|
||||
parent = types.ModuleType(parent_name)
|
||||
parent.__path__ = []
|
||||
monkeypatch.setitem(sys.modules, parent_name, parent)
|
||||
setattr(parent, child_name, module)
|
||||
monkeypatch.setattr(parent, child_name, module, raising=False)
|
||||
|
||||
return module
|
||||
|
||||
|
||||
Reference in New Issue
Block a user