Jan-30-2020, 04:23 AM
(Jan-29-2020, 07:32 PM)mojobadshah Wrote:(Jan-28-2020, 08:35 PM)jefsummers Wrote: How do you expect it to display your results?
You are not including enough code or information to be able to help
Here's the afdko source code specific Type1.py executable?
import pytest import subprocess from runner import main as runner from differ import main as differ from test_utils import get_expected_path TOOL = 'type1' # ----- # Tests # ----- @pytest.mark.parametrize('arg', ['-h']) def test_exit_known_option(arg): assert subprocess.call([TOOL, arg]) == 0 @pytest.mark.parametrize('arg', ['-v', '-u']) def test_exit_unknown_option(arg): assert subprocess.call([TOOL, arg]) == 1 def test_run_on_txt_data(): actual_path = runner(['-t', TOOL, '-s', '-f', 'type1.txt']) expected_path = get_expected_path('type1.pfa') assert differ([expected_path, actual_path])Does this help?
2 functions here are defined as arguments. Is the type1_test here telling me I have to set and call a parameter relative to one of the ids variable '-h' '-v' '-u' and there are no arguments represented apparent in the last function, so would the call function require a path similar to the first two functions in respects to variables '-t' '-s' '-f' and is this last function the only one that needs to be scripted to print?