diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 15:22:27 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 15:22:27 -0700 |
commit | 86ccea546f93eb74cab7474fe146303d7cb296eb (patch) | |
tree | 587e33c0db102a992e2f55f51d8283dc394bdf6d /python/tests/web_editgroup.py | |
parent | 3d992047a83d0668e484700f7077753752adee21 (diff) | |
download | fatcat-86ccea546f93eb74cab7474fe146303d7cb296eb.tar.gz fatcat-86ccea546f93eb74cab7474fe146303d7cb296eb.zip |
start improving webface test coverage
Diffstat (limited to 'python/tests/web_editgroup.py')
-rw-r--r-- | python/tests/web_editgroup.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/python/tests/web_editgroup.py b/python/tests/web_editgroup.py new file mode 100644 index 00000000..e6185eda --- /dev/null +++ b/python/tests/web_editgroup.py @@ -0,0 +1,20 @@ + +import json +import tempfile +import pytest +from fatcat_client.rest import ApiException +from fixtures import * + +def test_web_editgroup(app): + + rv = app.get('/editgroup/aaaaaaaaaaaabo53aaaaaaaaae') + assert rv.status_code == 200 + + rv = app.get('/editgroup/ccccccccccccccccccccccccca') + assert rv.status_code == 404 + + rv = app.get('/editor/aaaaaaaaaaaabkvkaaaaaaaaae') + assert rv.status_code == 200 + + rv = app.get('/editor/aaaaaaaaaaaabkvkaaaaaaaaae/editgroups') + assert rv.status_code == 200 |