diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-12 20:05:30 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-13 16:21:31 -0700 |
commit | 85f4124d0c70b9fb55e6f549cfd906fcf8783c6f (patch) | |
tree | a60100fbb7db2590014aea7d3f9c186f46a39fcb /python/tests/api_filesets.py | |
parent | 88497e378e2e4c93906c7485865724133511d4e6 (diff) | |
download | fatcat-85f4124d0c70b9fb55e6f549cfd906fcf8783c6f.tar.gz fatcat-85f4124d0c70b9fb55e6f549cfd906fcf8783c6f.zip |
python: test coverage of rust schema changes
Diffstat (limited to 'python/tests/api_filesets.py')
-rw-r--r-- | python/tests/api_filesets.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/tests/api_filesets.py b/python/tests/api_filesets.py index 6d755744..be023325 100644 --- a/python/tests/api_filesets.py +++ b/python/tests/api_filesets.py @@ -27,6 +27,7 @@ def test_fileset(api): md5="5f83592b5249671719bbed6ce91ecfa8", sha1="455face3598611458efe1f072e58624790a67266", sha256="429bcafa4d3d0072d5b2511e12c85c1aac1d304011d1c406da14707f7b9cd905", + mimetype="text/plain", extra={"x": 1, "y": "q"}, ), ], @@ -77,7 +78,8 @@ def test_fileset_examples(api): assert fs3.urls[0].url == 'http://other-personal-blog.name/dataset/' assert fs3.urls[1].rel == 'archive' assert fs3.manifest[1].md5 == 'f4de91152c7ab9fdc2a128f962faebff' - assert fs3.manifest[1].extra['mimetype'] == 'application/gzip' + assert fs3.manifest[1].mimetype == 'application/gzip' + assert fs3.manifest[1].extra != None assert fs3.releases[0].ident assert fs3.releases[0].abstracts is None assert fs3.releases[0].refs is None |