Skip to content

Commit 066c8c5

Browse files
committed
Use list, not queryset for tests
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 00e48cc commit 066c8c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnerabilities/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def test_api_with_all_vulnerable_packages(self):
603603
response = self.csrf_client.get(f"/api/packages/all", format="json").data
604604

605605
assert len(response) == 3
606-
assert response == [
606+
assert list(response) == [
607607
"pkg:maven/com.fasterxml.jackson.core/[email protected]",
608608
"pkg:maven/com.fasterxml.jackson.core/[email protected]",
609609
"pkg:maven/com.fasterxml.jackson.core/[email protected]",

0 commit comments

Comments
 (0)