aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-04-20 16:23:24 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-04-20 16:23:24 -0700
commit9bf2705cf54331dd3b5a915e206ef60a483a9ca7 (patch)
treebf4a54f6dad5f5499f1e19ca09d5a98418cca600 /tests/api.py
parentcc85fa69262b6e937e9d675808ca779d15c6fd85 (diff)
downloadfatcat-9bf2705cf54331dd3b5a915e206ef60a483a9ca7.tar.gz
fatcat-9bf2705cf54331dd3b5a915e206ef60a483a9ca7.zip
edit group inactive after accept
Diffstat (limited to 'tests/api.py')
-rw-r--r--tests/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/api.py b/tests/api.py
index 31a25245..6823aa6d 100644
--- a/tests/api.py
+++ b/tests/api.py
@@ -204,3 +204,7 @@ def test_api_rich_create(app):
file_rv = json.loads(app.get('/v0/file/{}'.format(file_id)).data.decode('utf-8'))
print(file_rv)
assert(file_rv['releases'][0]['release'] == release_id)
+
+ # test that editor's active edit group is now invalid
+ editor = Editor.query.first()
+ assert editor.active_edit_group == None