mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
updated tests
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user