aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/api_webcaptures.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_webcaptures.py
parent6a6d7997d23bc667c23b03e1fa9119e47033a118 (diff)
downloadfatcat-29b31d042cbfde67d47213a9cd80aec0a8af6837.tar.gz
fatcat-29b31d042cbfde67d47213a9cd80aec0a8af6837.zip
entity create edit_extra tests
Diffstat (limited to 'python/tests/api_webcaptures.py')
-rw-r--r--python/tests/api_webcaptures.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/tests/api_webcaptures.py b/python/tests/api_webcaptures.py
index 2b3deb95..394d0e47 100644
--- a/python/tests/api_webcaptures.py
+++ b/python/tests/api_webcaptures.py
@@ -47,9 +47,12 @@ def test_webcapture(api):
FileUrl(rel="wayback", url="https://web.archive.org/web/"),
],
release_ids = [r1edit.ident],
+ extra=dict(c=1, b=2),
+ edit_extra=dict(test_key="webcaptures rule"),
)
wc1edit = api.create_webcapture(eg.editgroup_id, wc1)
+ assert wc1edit.extra == wc1.edit_extra
api.accept_editgroup(eg.editgroup_id)
wc2 = api.get_webcapture(wc1edit.ident)
@@ -72,6 +75,7 @@ def test_webcapture(api):
assert wc1.release_ids == wc2.release_ids
assert wc1.timestamp == wc2.timestamp
assert wc1.original_url == wc2.original_url
+ assert wc1.extra == wc2.extra
# TODO: check release expansion
r1 = api.get_release(r1edit.ident, expand="webcaptures")