Skip to content

Commit 7e1b3ce

Browse files
authored
Merge branch 'main' into main
2 parents a05de3e + 80c65a2 commit 7e1b3ce

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
pip install -r requirements.txt
3939
4040
- name: Run tests
41-
run: pytest
41+
run: python -m pytest
4242
env:
4343
# The hostname, username used to communicate with the PostgreSQL service container
4444
POSTGRES_HOST: localhost

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ before_script:
1818

1919
script:
2020
- ./manage.py collectstatic
21-
- pytest
21+
- python -m pytest
2222

2323
notifications:
2424
email: false

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Run Tests
206206
Use these commands to run code style checks and the test suite::
207207

208208
black -l 100 --check .
209-
DJANGO_DEV=1 pytest
209+
DJANGO_DEV=1 python -m pytest
210210

211211

212212
Data import

vulnerabilities/importers/nginx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def updated_advisories(self):
6666

6767
def to_advisories(self, data):
6868
advisories = []
69-
soup = BeautifulSoup(data)
69+
soup = BeautifulSoup(data, features="lxml")
7070
vuln_list = soup.select("li p")
7171

7272
# Example value of `vuln_list` :

vulnerabilities/importers/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def updated_advisories(self):
5858

5959
def to_advisories(data):
6060
advisories = []
61-
soup = BeautifulSoup(data)
61+
soup = BeautifulSoup(data, features="lxml")
6262
table = soup.select("table")[0]
6363
for row in table.select("tbody tr"):
6464
ref_col, affected_col, fixed_col, severity_score_col, desc_col = row.select("td")

vulnerablecode/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, *args, **kwargs):
8888
urlpatterns = [
8989
path("admin/", admin.site.urls),
9090
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
91-
path("api/schema/swagger-ui/", SpectacularSwaggerView.as_view(), name="swagger-ui"),
91+
path("api/docs", SpectacularSwaggerView.as_view(), name="swagger-ui"),
9292
path("packages/search", PackageSearchView.as_view(), name="package_search"),
9393
path("packages/<int:pk>", PackageUpdate.as_view(), name="package_view"),
9494
path("vulnerabilities/<int:pk>", VulnerabilityDetails.as_view(), name="vulnerability_view"),

0 commit comments

Comments
 (0)