Commit 1a3b38b5 by dorp

removed obsolete test

parent 8e6defeb
from pathlib import Path
import pytest
from common_helper_process.fail_safe_subprocess import execute_shell_command_get_return_code
SCRIPT_PATH = Path(__file__).parent.parent.parent / 'report.py'
@pytest.mark.parametrize('arguments, expected_output, expected_return_code', [
('-V', 'FACT', 0),
('-h', 'usag', 0)
])
def test_main_program(arguments, expected_output, expected_return_code):
output, return_code = execute_shell_command_get_return_code('{} {}'.format(SCRIPT_PATH, arguments))
assert output[0:4] == expected_output
assert return_code == expected_return_code
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment