Added tests for start command

This commit is contained in:
2022-06-26 00:39:16 +02:00
parent 6de3bbdaf4
commit 32507afae9
8 changed files with 119 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ class CLICommands:
if output:
subprocess.run(command, env=env_vars)
else:
subprocess.run(command, env=env_vars, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.run(command, env=env_vars, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL)
@classmethod
def add(cls, source: str, target: str, output=False):
@@ -59,6 +59,10 @@ class CLICommands:
return
cls._run('run', project, output=output)
@classmethod
def start(cls, output=False):
cls._run('start', output=output)
@classmethod
def uninstall(cls, package: str, output=False):
cls._run('uninstall', package, output=output)