Improved tests

This commit is contained in:
2022-05-26 15:29:49 +02:00
parent d937c4c0e6
commit a72dd0dc2e
6 changed files with 25 additions and 15 deletions

View File

@@ -1,13 +1,15 @@
import os
import subprocess
from unittests_cli.constants import CLI_PATH
class CLICommands:
@staticmethod
def _run(cmd: str, *args):
env_vars = os.environ
command = ['python', os.path.abspath(os.path.join(os.getcwd(), '../../../cpl_cli/main.py')), cmd]
command = ['python', CLI_PATH, cmd]
for arg in args:
command.append(arg)