File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616TEST_DATA = os .path .join (BASE_DIR , "test_data/mozilla/" )
1717
1818
19- def test_import ():
19+ def test_import_md ():
2020 md_file = os .path .join (TEST_DATA , "mfsa2006-02.md" )
2121 expected_file_md = os .path .join (TEST_DATA , "expected-md.json" )
22+ advisories_from_md = [adv .to_dict () for adv in to_advisories (md_file )]
23+ util_tests .check_results_against_json (advisories_from_md , expected_file_md )
24+
25+
26+ def test_import_yml ():
2227 yml_file = os .path .join (TEST_DATA , "mfsa2022-01.yml" )
2328 expected_file_yml = os .path .join (TEST_DATA , "expected-yml.json" )
24- advisories_from_md = [adv .to_dict () for adv in to_advisories (md_file )]
2529 advisories_from_yml = [adv .to_dict () for adv in to_advisories (yml_file )]
26- util_tests .check_results_against_json (advisories_from_md , expected_file_md )
2730 util_tests .check_results_against_json (advisories_from_yml , expected_file_yml )
You can’t perform that action at this time.
0 commit comments