diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-14 21:14:22 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-14 21:14:22 -0800 |
commit | 378d48f9a48d4be5e81380be41e9fba1ee62cb75 (patch) | |
tree | 6fbdb898908e064c5cff14f8eac582008a1bbc5d | |
parent | e6926d30511d55488ef212ae60fa2702f48c1b25 (diff) | |
download | fatcat-378d48f9a48d4be5e81380be41e9fba1ee62cb75.tar.gz fatcat-378d48f9a48d4be5e81380be41e9fba1ee62cb75.zip |
cleanup test fixtures a bit
-rw-r--r-- | python/tests/fixtures.py | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py index 6a880c48..3cc275b3 100644 --- a/python/tests/fixtures.py +++ b/python/tests/fixtures.py @@ -28,6 +28,7 @@ def api(): conf.api_key["Authorization"] = os.getenv("FATCAT_API_AUTH_TOKEN") conf.api_key_prefix["Authorization"] = "Bearer" api_client = fatcat_client.DefaultApi(fatcat_client.ApiClient(conf)) + api_client.editor_id = "aaaaaaaaaaaabkvkaaaaaaaaae" return api_client def test_get_changelog_entry(api): @@ -38,33 +39,6 @@ def test_get_changelog_entry(api): ## Helpers ################################################################## def quick_eg(api_inst): - eg = api_inst.create_editgroup( - fatcat_client.Editgroup(editor_id='aaaaaaaaaaaabkvkaaaaaaaaae')) + eg = api_inst.create_editgroup(fatcat_client.Editgroup()) return eg -# TODO: what are these even here for? -def check_entity_fields(e): - for key in ('rev', 'is_live', 'redirect_id'): - assert key in e - for key in ('id',): - assert e[key] is not None - -def check_release(e): - for key in ('work', 'release_type'): - assert key in e - for key in ('title', ): - assert e[key] is not None - for key in ('refs', 'creators'): - assert type(e[key]) == list - -def check_creator(e): - for key in ('name',): - assert e[key] is not None - -def check_container(e): - for key in ('name',): - assert e[key] is not None - -def check_file(e): - for key in ('size', 'sha1'): - assert e[key] is not None |