summaryrefslogtreecommitdiffstats
path: root/python/tests/api_releases.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 15:24:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 15:24:22 -0700
commit29b31d042cbfde67d47213a9cd80aec0a8af6837 (patch)
tree7e9ab55f5236b31bb367bedb98f21b63193bcfc9 /python/tests/api_releases.py
parent6a6d7997d23bc667c23b03e1fa9119e47033a118 (diff)
downloadfatcat-29b31d042cbfde67d47213a9cd80aec0a8af6837.tar.gz
fatcat-29b31d042cbfde67d47213a9cd80aec0a8af6837.zip
entity create edit_extra tests
Diffstat (limited to 'python/tests/api_releases.py')
-rw-r--r--python/tests/api_releases.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/tests/api_releases.py b/python/tests/api_releases.py
index 9e72eb65..c0c4ef90 100644
--- a/python/tests/api_releases.py
+++ b/python/tests/api_releases.py
@@ -45,7 +45,6 @@ def test_release(api):
publisher="some publisher",
language="en",
license_slug="CC-0",
- extra=dict(a=1, b=2),
contribs=[
ReleaseContrib(
given_name="Paul",
@@ -68,10 +67,13 @@ def test_release(api):
mimetype="text/plain",
lang="de"),
],
+ extra=dict(a=1, b=2),
+ edit_extra=dict(test_key="releases rule"),
)
r1.bogus = "asdf"
r1edit = api.create_release(eg.editgroup_id, r1)
+ assert r1edit.extra == r1.edit_extra
api.accept_editgroup(eg.editgroup_id)
r2 = api.get_release(r1edit.ident)