diff options
| author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 19:35:14 -0800 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 19:35:14 -0800 | 
| commit | bd613a2d432fe487ed91f490e8058732749b5a8e (patch) | |
| tree | 250ff2b83102274cfab635af7ead83ab09c93d3c /python/tests | |
| parent | a00722505b3f4d523787935dd2776e62c45b27ba (diff) | |
| download | fatcat-bd613a2d432fe487ed91f490e8058732749b5a8e.tar.gz fatcat-bd613a2d432fe487ed91f490e8058732749b5a8e.zip | |
add quick test for WARN rust logging
Diffstat (limited to 'python/tests')
| -rw-r--r-- | python/tests/api_misc.py | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/python/tests/api_misc.py b/python/tests/api_misc.py index 0a0f16da..27d64025 100644 --- a/python/tests/api_misc.py +++ b/python/tests/api_misc.py @@ -28,3 +28,15 @@ def test_lookup_hide_extend(api):      assert r.files is None      assert r.container.issnl      assert r.abstracts == [] + +def test_unexpected_body(api): + +    eg = quick_eg(api) + +    # all the fields! +    f1 = FileEntity( +        sha1="88888888888888892dd2657a1e3c992b5dc45dd2", +    ) +    f1.urls = [dict(url="http://thing", rel="repository", asdf="blue")] +    api.create_file(f1, editgroup_id=eg.editgroup_id) + | 
