Skip to content

Commit

Permalink
Update test url
Browse files Browse the repository at this point in the history
  • Loading branch information
samhotep committed Jul 4, 2024
1 parent a8fd044 commit 324b9c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,13 @@ def test_cves_filtered_by_status_version_and_package(self):
# Add releases because the DB only includes
# 1 release upon initialization
add_release_response = self.client.post(
"/security/releases.json", json=payloads.release
"/security/updates/releases.json", json=payloads.release
)
add_release2_response = self.client.post(
"/security/releases.json", json=payloads.release2
"/security/updates/releases.json", json=payloads.release2
)
add_release3_response = self.client.post(
"/security/releases.json", json=payloads.release3
"/security/updates/releases.json", json=payloads.release3
)

assert add_release_response.status_code == 200
Expand All @@ -593,7 +593,7 @@ def test_cves_filtered_by_status_version_and_package(self):
# Add cves with different statuses because the
# DB only includes 1 cve upon initialization
add_cves_response = self.client.put(
"/security/cves.json",
"/security/updates/cves.json",
json=[
payloads.cve2,
payloads.cve3,
Expand All @@ -618,13 +618,13 @@ def test_cves_filtered_by_empty_status(self):
# Add releases because the DB only includes
# 1 release upon initialization
add_release_response = self.client.post(
"/security/releases.json", json=payloads.release
"/security/updates/releases.json", json=payloads.release
)
add_release2_response = self.client.post(
"/security/releases.json", json=payloads.release2
"/security/updates/releases.json", json=payloads.release2
)
add_release3_response = self.client.post(
"/security/releases.json", json=payloads.release3
"/security/updates/releases.json", json=payloads.release3
)

assert add_release_response.status_code == 200
Expand All @@ -634,7 +634,7 @@ def test_cves_filtered_by_empty_status(self):
# Add cves with different statuses because the
# DB only includes 1 cve upon initialization
add_cves_response = self.client.put(
"/security/cves.json",
"/security/updates/cves.json",
json=[
payloads.cve2,
payloads.cve3,
Expand Down

0 comments on commit 324b9c3

Please sign in to comment.