Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samhotep committed Jul 3, 2024
1 parent a571749 commit a8fd044
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,9 @@ def test_create_usn_returns_422_for_unknown_field(self):
notice = payloads.notice.copy()
notice["unknown"] = "field"

response = self.client.post("/security/updates/notices.json", json=notice)
response = self.client.post(
"/security/updates/notices.json", json=notice
)

assert response.status_code == 422
assert "Unknown field." in response.json["errors"]
Expand All @@ -1077,7 +1079,9 @@ def test_update_usn(self):

# Create first
notice = payloads.notice.copy()
response_1 = self.client.post("/security/updates/notices.json", json=notice)
response_1 = self.client.post(
"/security/updates/notices.json", json=notice
)
assert response_1.status_code == 200

# Update
Expand Down Expand Up @@ -1155,7 +1159,9 @@ def test_create_existing_release_returns_422(self):
) in response_2.json["errors"]

def test_delete_non_existing_release_returns_404(self):
response = self.client.delete("/security/updates/releases/no-exist.json")
response = self.client.delete(
"/security/updates/releases/no-exist.json"
)

assert response.status_code == 404

Expand Down

0 comments on commit a8fd044

Please sign in to comment.