Skip to content

Commit

Permalink
version (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji38kwmt committed Jan 26, 2021
1 parent 6ab3fbd commit f95f40e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.41.1"
__version__ = "0.41.2"
2 changes: 1 addition & 1 deletion annofabapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _get_signed_cookie(self, project_id) -> Tuple[Dict[str, Any], requests.Respo
keyword_params: Dict[str, Any] = {}
return self._request_wrapper(http_method, url_path, **keyword_params)

def request_get_with_cookie(self, project_id: str, url: str) -> requests.Response:
def _request_get_with_cookie(self, project_id: str, url: str) -> requests.Response:
"""
Signed Cookie を使って、AnnoFabのURLにGET requestを投げる。
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "annofabapi"
version = "0.41.1"
version = "0.41.2"
description = "Python Clinet Library of AnnoFab WebAPI (https://annofab.com/docs/api/)"
authors = ["yuji38kwmt"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,14 @@ class TestProtectedMethod:
def test__request_get_with_cookie(self):
images, _ = api.get_instruction_images(project_id)
url = images[0]["url"]
r = api.request_get_with_cookie(project_id, url)
r = api._request_get_with_cookie(project_id, url)
# エラーがないことを確認する

def test_request_get_with_cookie_failed(self):
# SignedCookieに対応するプロジェクトと、アクセス対象のプロジェクトが異なっているときの対応
url = "https://annofab.com/projects/foo/annotation_specs_histories/foo.json"
with pytest.raises(requests.HTTPError):
api.request_get_with_cookie(project_id, url)
api._request_get_with_cookie(project_id, url)


class TestProperty:
Expand Down

0 comments on commit f95f40e

Please sign in to comment.