diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-05 18:49:36 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-05 18:49:36 -0700 |
commit | 28d2d94a9100c1a809955cde93fdbb7a36263057 (patch) | |
tree | b61675cbd21f28da15dabf4361cf86bad565f1c4 /python/tests/api_entity_editing.py | |
parent | 070069cb6eb71b92a9c4e46f3d4cfabb67f4eb3f (diff) | |
download | fatcat-28d2d94a9100c1a809955cde93fdbb7a36263057.tar.gz fatcat-28d2d94a9100c1a809955cde93fdbb7a36263057.zip |
refactor all python source for client lib name
Diffstat (limited to 'python/tests/api_entity_editing.py')
-rw-r--r-- | python/tests/api_entity_editing.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/tests/api_entity_editing.py b/python/tests/api_entity_editing.py index 83f38695..d5377e18 100644 --- a/python/tests/api_entity_editing.py +++ b/python/tests/api_entity_editing.py @@ -3,8 +3,8 @@ import json import pytest from copy import copy -from fatcat_client import * -from fatcat_client.rest import ApiException +from fatcat_openapi_client import * +from fatcat_openapi_client.rest import ApiException from fixtures import * @@ -23,7 +23,7 @@ def test_multiple_edits_same_group(api): c3 = CreatorEntity(display_name="right") edit = api.update_creator(eg.editgroup_id, c1.ident, c2) # should fail with existing - with pytest.raises(fatcat_client.rest.ApiException): + with pytest.raises(fatcat_openapi_client.rest.ApiException): api.update_creator(eg.editgroup_id, c1.ident, c3) # ... but succeed after deleting api.delete_creator_edit(edit.editgroup_id, edit.edit_id) @@ -54,7 +54,7 @@ def test_edit_after_accept(api): try: api.create_creator(eg.editgroup_id, c2) assert False - except fatcat_client.rest.ApiException as e: + except fatcat_openapi_client.rest.ApiException as e: assert 400 <= e.status < 500 # TODO: need better message #assert "accepted" in e.body @@ -116,7 +116,7 @@ def test_delete_accepted_edit(api): try: api.delete_creator_edit(edit.editgroup_id, edit.edit_id) assert False - except fatcat_client.rest.ApiException as e: + except fatcat_openapi_client.rest.ApiException as e: assert 400 <= e.status < 500 assert "accepted" in e.body |