summaryrefslogtreecommitdiffstats
path: root/tests/api.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-04-23 20:59:47 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-04-23 20:59:47 -0700
commitf13a9c26c7a894703b401f4898b3d5bb84282824 (patch)
tree072e7cfd33cc2d2ecb501119aef0f2e982012e0d /tests/api.py
parent176c76597dd42705cf3aaf307b831cb5f979d9bb (diff)
downloadfatcat-f13a9c26c7a894703b401f4898b3d5bb84282824.tar.gz
fatcat-f13a9c26c7a894703b401f4898b3d5bb84282824.zip
pylinting
Diffstat (limited to 'tests/api.py')
-rw-r--r--tests/api.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/api.py b/tests/api.py
index 7e487f17..bb7007c1 100644
--- a/tests/api.py
+++ b/tests/api.py
@@ -1,8 +1,8 @@
import json
-import pytest
import unittest
import tempfile
+import pytest
import fatcat
import fatcat.sql
from fatcat.models import *
@@ -196,18 +196,18 @@ def test_api_rich_create(app):
# Test that foreign key relations worked
release_rv = json.loads(app.get('/v0/release/{}'.format(release_id)).data.decode('utf-8'))
print(release_rv)
- assert(release_rv['creators'][0]['creator'] == creator_id)
- assert(release_rv['container']['id'] == container_id)
- assert(release_rv['work']['id'] == work_id)
- assert(release_rv['refs'][0]['target'] == stub_release_id)
+ assert release_rv['creators'][0]['creator'] == creator_id
+ assert release_rv['container']['id'] == container_id
+ assert release_rv['work']['id'] == work_id
+ assert release_rv['refs'][0]['target'] == stub_release_id
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)
+ 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_editgroup == None
+ assert editor.active_editgroup is None
def test_api_release_lookup(rich_app):
app = rich_app