Skip to content

Commit a63826e

Browse files
committed
fix view ,add a test and sort imports.
Signed-off-by: Ziad <ziadhany2016@gmail.com>
1 parent 4cc6b4f commit a63826e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

vulnerabilities/tests/test_view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from django.test import TestCase, Client
1+
from django.test import Client
2+
from django.test import TestCase
23

34

45
class PackageSearchTestCase(TestCase):

vulnerabilities/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
# for any legal advice.
2020
# VulnerableCode is a free software code scanning tool from nexB Inc. and others.
2121
# Visit https://github.com/nexB/vulnerablecode/ for support and download.
22-
2322
from urllib.parse import urlencode
2423

25-
from django.core.paginator import Paginator, PageNotAnInteger
24+
from django.core.paginator import PageNotAnInteger
25+
from django.core.paginator import Paginator
2626
from django.db.models import Count
2727
from django.db.models import Q
2828
from django.http import HttpResponse

0 commit comments

Comments
 (0)