summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-12-17 17:51:56 -0800
committerJohn Helmert III <ajak@gentoo.org>2023-12-17 17:51:56 -0800
commit9f70524aa51ba9521ef8911e8eee3a6b6969584d (patch)
treeb0783bafe6743ec69814a02adda6f957c8ef6371
parenttest_autoglsa: add real test for autogenerate_glsa (diff)
downloadglsamaker-9f70524aa51ba9521ef8911e8eee3a6b6969584d.tar.gz
glsamaker-9f70524aa51ba9521ef8911e8eee3a6b6969584d.tar.bz2
glsamaker-9f70524aa51ba9521ef8911e8eee3a6b6969584d.zip
test_views: add basic autoglsa testing from client's perspective
Signed-off-by: John Helmert III <ajak@gentoo.org>
-rw-r--r--test/test_views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_views.py b/test/test_views.py
index b90d929..feb5d54 100644
--- a/test/test_views.py
+++ b/test/test_views.py
@@ -65,3 +65,13 @@ def test_unauthenticated(app, client, endpoint):
def test_authenticated(app, auth):
response = auth.get("/drafts")
assert response.status_code == 200
+
+
+def test_newbugs(app, auth):
+ response = auth.post(
+ "/newbugs",
+ data={"bugs": "828936"},
+ follow_redirects=True,
+ )
+
+ assert response.status_code == 200