fix: address missing coverage from previous changes

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-08 17:58:43 -08:00
parent b6321bbdc5
commit 4ae72af4b5
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 6 additions and 4 deletions

View file

@ -62,7 +62,3 @@ def setup_test_db(*args):
aurweb.db.get_session().execute(f"DELETE FROM {table}") aurweb.db.get_session().execute(f"DELETE FROM {table}")
aurweb.db.get_session().execute("SET FOREIGN_KEY_CHECKS = 1") aurweb.db.get_session().execute("SET FOREIGN_KEY_CHECKS = 1")
aurweb.db.get_session().expunge_all() aurweb.db.get_session().expunge_all()
def noop(*args, **kwargs) -> None:
return

View file

@ -153,6 +153,12 @@ def test_archive_sig(client: TestClient):
assert resp.text == hash_value assert resp.text == hash_value
def test_archive_sig_404(client: TestClient):
with client as request:
resp = request.get("/blah.gz.sha256")
assert resp.status_code == int(HTTPStatus.NOT_FOUND)
def test_metrics(client: TestClient): def test_metrics(client: TestClient):
with client as request: with client as request:
resp = request.get("/metrics") resp = request.get("/metrics")