()
| 23 | |
| 24 | |
| 25 | def test_to_advisories(): |
| 26 | with open(os.path.join(TEST_DATA, "advisories.html")) as f: |
| 27 | raw_data = f.read() |
| 28 | advisories = to_advisories(raw_data) |
| 29 | result = [data.to_dict() for data in advisories] |
| 30 | expected_file = os.path.join(TEST_DATA, f"parse-advisory-postgresql-expected.json") |
| 31 | util_tests.check_results_against_json(result, expected_file) |
| 32 | |
| 33 | |
| 34 | @pytest.mark.django_db |
nothing calls this directly
no test coverage detected