diff options
author | John Helmert III <ajak@gentoo.org> | 2023-12-17 17:51:56 -0800 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2023-12-17 17:51:56 -0800 |
commit | 9f70524aa51ba9521ef8911e8eee3a6b6969584d (patch) | |
tree | b0783bafe6743ec69814a02adda6f957c8ef6371 | |
parent | test_autoglsa: add real test for autogenerate_glsa (diff) | |
download | glsamaker-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.py | 10 |
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 |