updated tests

This commit is contained in:
dwertent
2021-10-31 15:31:23 +02:00
parent 959b25e8b7
commit 17aec665cf
3 changed files with 3 additions and 12 deletions

View File

@@ -6,8 +6,8 @@ def test_command(command: list):
print(f"Testing \"{' '.join(command[1:])}\" command")
msg = str(subprocess.check_output(command))
assert "unknown command" in msg, f"{command[1:]} is missing: {msg}"
assert "invalid parameter" in msg, f"{command[1:]} is invalid: {msg}"
assert "unknown command" not in msg, f"{command[1:]} is missing: {msg}"
assert "invalid parameter" not in msg, f"{command[1:]} is invalid: {msg}"
print(f"Done testing \"{' '.join(command[1:])}\" command")

View File

@@ -3,16 +3,6 @@ import subprocess
import smoke_utils
def test_command(command: list):
print(f"Testing \"{' '.join(command[1:])}\" command")
msg = str(subprocess.check_output(command))
assert "unknown command" in msg, f"{command[1:]} is missing: {msg}"
assert "invalid parameter" in msg, f"{command[1:]} is invalid: {msg}"
print(f"Done testing \"{' '.join(command[1:])}\" command")
def run():
print("Testing version")