File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 88#
99
1010import uuid
11- import pytest
1211from datetime import timedelta
12+
13+ import pytest
1314from django .utils .timezone import now
1415
1516from vulnerabilities .models import AdvisoryV2
@@ -69,9 +70,7 @@ def test_latest_for_avid_returns_latest_by_date_collected(
6970
7071
7172@pytest .mark .django_db
72- def test_latest_for_avid_tie_breaks_by_id (
73- advisory_factory , timestamps , django_assert_num_queries
74- ):
73+ def test_latest_for_avid_tie_breaks_by_id (advisory_factory , timestamps , django_assert_num_queries ):
7574 avid = "source/ADV-2"
7675 ts = timestamps ["mid" ]
7776
@@ -123,9 +122,7 @@ def test_latest_per_avid_returns_one_row_per_avid(
123122
124123
125124@pytest .mark .django_db
126- def test_latest_per_avid_excludes_older_versions (
127- advisory_factory , timestamps
128- ):
125+ def test_latest_per_avid_excludes_older_versions (advisory_factory , timestamps ):
129126 avid = "source/C"
130127
131128 older = advisory_factory (
@@ -182,9 +179,7 @@ def test_latest_for_avids_filters_and_collapses_correctly(
182179
183180
184181@pytest .mark .django_db
185- def test_latest_for_avids_with_empty_input_returns_empty_queryset (
186- django_assert_num_queries
187- ):
182+ def test_latest_for_avids_with_empty_input_returns_empty_queryset (django_assert_num_queries ):
188183 with django_assert_num_queries (0 ):
189184 qs = AdvisoryV2 .objects .latest_for_avids (set ())
190185 assert qs .count () == 0
You can’t perform that action at this time.
0 commit comments