Skip to content

Commit 32bf5bc

Browse files
committed
Fix formatting issues
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 3f5b186 commit 32bf5bc

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

vulnerabilities/tests/test_same_avid_different_content_id.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
#
99

1010
import uuid
11-
import pytest
1211
from datetime import timedelta
12+
13+
import pytest
1314
from django.utils.timezone import now
1415

1516
from 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

0 commit comments

Comments
 (0)