Skip to content

Commit b0a66eb

Browse files
committed
Address review comments
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 5e09aed commit b0a66eb

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

-35.2 KB
Binary file not shown.

vulnerabilities/tests/test_mozilla.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
TEST_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)

0 commit comments

Comments
 (0)