aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/fixtures.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-23 23:49:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-24 15:21:58 -0700
commit3f567f5347281602d433e4f3cf4876956afd0588 (patch)
tree7428bcb3b24b483093becc1c37945ccaee105119 /python/tests/fixtures.py
parent63db335123d8dde1c4e701668c07805094ff88e8 (diff)
downloadfatcat-3f567f5347281602d433e4f3cf4876956afd0588.tar.gz
fatcat-3f567f5347281602d433e4f3cf4876956afd0588.zip
python hacks to work with rustx-attic-python-rust-hacks
... and sort of trying to fix tests, but gave up for now.
Diffstat (limited to 'python/tests/fixtures.py')
-rw-r--r--python/tests/fixtures.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py
index d3d8c24b..364c8be7 100644
--- a/python/tests/fixtures.py
+++ b/python/tests/fixtures.py
@@ -61,7 +61,7 @@ def enrichen_test_app(app):
name="schmournal",
publisher="society of authors",
issn="2222-3333",
- editgroup=editgroup_id,
+ editgroup_id=editgroup_id,
extra=dict(a=2, i="zing"))),
headers={"content-type": "application/json"})
assert rv.status_code == 200
@@ -72,7 +72,7 @@ def enrichen_test_app(app):
data=json.dumps(dict(
name="anon y. mouse",
orcid="0000-0002-1825-0097",
- editgroup=editgroup_id,
+ editgroup_id=editgroup_id,
extra=dict(w=1, q="zing"))),
headers={"content-type": "application/json"})
assert rv.status_code == 200
@@ -83,7 +83,7 @@ def enrichen_test_app(app):
data=json.dumps(dict(
title="dummy work",
work_type="book",
- editgroup=editgroup_id,
+ editgroup_id=editgroup_id,
extra=dict(a=3, b="zing"))),
headers={"content-type": "application/json"})
assert rv.status_code == 200
@@ -98,7 +98,7 @@ def enrichen_test_app(app):
work=work_id,
creators=[creator_id],
doi="10.1234/58",
- editgroup=editgroup_id,
+ editgroup_id=editgroup_id,
refs=[
dict(stub="some other journal article"),
],
@@ -116,7 +116,7 @@ def enrichen_test_app(app):
container=container_id,
creators=[creator_id],
doi="10.1234/5678",
- editgroup=editgroup_id,
+ editgroup_id=editgroup_id,
refs=[
dict(stub="some book", target=stub_release_id),
],
@@ -131,7 +131,7 @@ def enrichen_test_app(app):
sha1="deadbeefdeadbeef",
size=1234,
releases=[release_id],
- editgroup=editgroup_id,
+ editgroup_id=editgroup_id,
extra=dict(f=4, b="zing"))),
headers={"content-type": "application/json"})
assert rv.status_code == 200