a2a-source-edit: write tests/test_full_stack_contract.py
This commit is contained in:
@@ -16,6 +16,7 @@ def load_agent_module():
|
|||||||
spec = importlib.util.spec_from_file_location("contract_clock_agent", ROOT / "agent.py")
|
spec = importlib.util.spec_from_file_location("contract_clock_agent", ROOT / "agent.py")
|
||||||
module = importlib.util.module_from_spec(spec)
|
module = importlib.util.module_from_spec(spec)
|
||||||
assert spec.loader is not None
|
assert spec.loader is not None
|
||||||
|
sys.modules[spec.name] = module
|
||||||
spec.loader.exec_module(module)
|
spec.loader.exec_module(module)
|
||||||
return module
|
return module
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user