mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: address missing coverage from previous changes
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b6321bbdc5
commit
4ae72af4b5
2 changed files with 6 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue