mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-04 12:52:36 +02:00
Add unit tests for base helper modules (#797)
- add unit tests for base metrics, logging, spec, parameter_spec, and flow modules - add a lightweight test-only module loader so these tests can run without optional runtime dependencies - fix Parameter.start/stop to accept self
This commit is contained in:
parent
ec8f740de3
commit
19f73e4cdc
4 changed files with 338 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ from . spec import Spec
|
|||
class Parameter:
|
||||
def __init__(self, value):
|
||||
self.value = value
|
||||
async def start():
|
||||
async def start(self):
|
||||
pass
|
||||
async def stop():
|
||||
async def stop(self):
|
||||
pass
|
||||
|
||||
class ParameterSpec(Spec):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue