diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 16:48:02 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 16:48:02 -0700 |
commit | 9dfb5f3f83f715cdb16e68c4dedb12ca87bb93b3 (patch) | |
tree | b99ee6306e13f53d4eb3c6cdcbc71a0e028947a8 /python/tests/web_routes.py | |
parent | a7a9442144e3ab7dfafcfc2274016c58ac5558c0 (diff) | |
download | fatcat-9dfb5f3f83f715cdb16e68c4dedb12ca87bb93b3.tar.gz fatcat-9dfb5f3f83f715cdb16e68c4dedb12ca87bb93b3.zip |
many web test improvements
Diffstat (limited to 'python/tests/web_routes.py')
-rw-r--r-- | python/tests/web_routes.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/python/tests/web_routes.py b/python/tests/web_routes.py index e6387882..889bdd90 100644 --- a/python/tests/web_routes.py +++ b/python/tests/web_routes.py @@ -1,34 +1,15 @@ import json -import tempfile import pytest from fatcat_client.rest import ApiException from fixtures import * def test_static_routes(app): - for route in ('/health.json', '/robots.txt', '/', '/about'): + for route in ('/health.json', '/robots.txt', '/', '/about', '/rfc', + '/static/fatcat.jpg'): rv = app.get(route) assert rv.status_code == 200 assert app.get("/static/bogus/route").status_code == 404 - -def test_all_views(app): - - rv = app.get('/editgroup/aaaaaaaaaaaabo53aaaaaaaaae') - assert rv.status_code == 200 - - rv = app.get('/editgroup/ccccccccccccccccccccccccca') - print(rv) - print(rv.data) - assert rv.status_code == 404 - - #rv = app.get('/editgroup/current') - #assert rv.status_code == 302 - - rv = app.get('/editor/aaaaaaaaaaaabkvkaaaaaaaaae') - assert rv.status_code == 200 - - rv = app.get('/editor/aaaaaaaaaaaabkvkaaaaaaaaae/editgroups') - assert rv.status_code == 200 |