aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-04-14 15:37:03 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-04-14 15:37:03 -0700
commit097479244bcfcd9e016b0f5a842672018c0a49b5 (patch)
treeaf8ee3171014d536a93b0f2f974a04ffa21150c1 /tests
parente6eecb51ec0904d954c343c1459643e251a7a1a4 (diff)
downloadfatcat-097479244bcfcd9e016b0f5a842672018c0a49b5.tar.gz
fatcat-097479244bcfcd9e016b0f5a842672018c0a49b5.zip
fix up some more relationships
Diffstat (limited to 'tests')
-rw-r--r--tests/test_backend.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/test_backend.py b/tests/test_backend.py
index 97b4ed31..873009f9 100644
--- a/tests/test_backend.py
+++ b/tests/test_backend.py
@@ -67,14 +67,6 @@ class ModelTestCase(FatcatTestCase):
for obj in raw:
fatcat.sql.add_crossref_via_model(obj)
- def test_hydrate_work(self):
- fatcat.dummy.insert_random_works()
- fatcat.sql.hydrate_work(1)
-
- def test_hydrate_release(self):
- fatcat.dummy.insert_random_works()
- fatcat.sql.hydrate_release(1)
-
def test_schema_release_rev(self):
assert ReleaseRev.query.count() == 0
e = {
@@ -178,7 +170,7 @@ class APITestCase(FatcatTestCase):
assert WorkRev.query.count() == 0
assert WorkEdit.query.count() == 0
rv = self.app.post('/v0/work',
- data=json.dumps(dict(title="dummy", work_type="thing")),
+ data=json.dumps(dict(title="dummy", work_type="thing", extra=dict(a=1, b="zing"))),
headers={"content-type": "application/json"})
print(rv)
assert rv.status_code == 200