Conditions | 1 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright 2022, Red Hat, Inc. |
||
20 | @pytest.mark.unit_test |
||
21 | @mock.patch('argparse.ArgumentParser.parse_args', |
||
22 | return_value=get_fake_args()) |
||
23 | def test_load_file(mock_args): # pylint: disable=W0613 |
||
24 | api = CommandLineAPI() |
||
25 | xml_report = api.load_file() |
||
26 | parser = SCAPResultsParser(xml_report) |
||
27 | assert parser.validate(ARF_SCHEMAS_PATH) |
||
28 | api.close_files() |
||
29 | |||
42 |