Skip to content
Snippets Groups Projects
Verified Commit 3eee25fb authored by Philipp S. Sommer's avatar Philipp S. Sommer
Browse files

allow args for connect_module fixture

parent d20775e4
No related branches found
No related tags found
No related merge requests found
Pipeline #413989 passed
......@@ -118,11 +118,11 @@ def connect_module(
"""Get a factory that connects DASF backend module scripts"""
processes: List[spr.Popen] = []
def connect(topic: str, path_or_mod: str, **kwargs) -> spr.Popen:
def connect(topic: str, path_or_mod: str, *args, **kwargs) -> spr.Popen:
"""Connect a script to the live_server"""
command = get_module_command(topic, path_or_mod)
try:
process = spr.Popen(command + ["listen"], **kwargs)
process = spr.Popen(command + ["listen"] + list(args), **kwargs)
except Exception:
raise
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment