Verified Commit 4ae72af4 authored by Kevin Morris's avatar Kevin Morris
Browse files

fix: address missing coverage from previous changes



Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent b6321bbd
Pipeline #15728 passed with stages
in 4 minutes and 2 seconds
......@@ -62,7 +62,3 @@ def setup_test_db(*args):
aurweb.db.get_session().execute(f"DELETE FROM {table}")
aurweb.db.get_session().execute("SET FOREIGN_KEY_CHECKS = 1")
aurweb.db.get_session().expunge_all()
def noop(*args, **kwargs) -> None:
return
......@@ -153,6 +153,12 @@ def test_archive_sig(client: TestClient):
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):
with client as request:
resp = request.get("/metrics")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment