Skip to content

Commit f95f40e

Browse files
authored
version (#271)
1 parent 6ab3fbd commit f95f40e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

annofabapi/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.41.1"
1+
__version__ = "0.41.2"

annofabapi/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _get_signed_cookie(self, project_id) -> Tuple[Dict[str, Any], requests.Respo
254254
keyword_params: Dict[str, Any] = {}
255255
return self._request_wrapper(http_method, url_path, **keyword_params)
256256

257-
def request_get_with_cookie(self, project_id: str, url: str) -> requests.Response:
257+
def _request_get_with_cookie(self, project_id: str, url: str) -> requests.Response:
258258
"""
259259
Signed Cookie を使って、AnnoFabのURLにGET requestを投げる。
260260

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "annofabapi"
3-
version = "0.41.1"
3+
version = "0.41.2"
44
description = "Python Clinet Library of AnnoFab WebAPI (https://annofab.com/docs/api/)"
55
authors = ["yuji38kwmt"]
66
license = "MIT"

tests/test_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -534,14 +534,14 @@ class TestProtectedMethod:
534534
def test__request_get_with_cookie(self):
535535
images, _ = api.get_instruction_images(project_id)
536536
url = images[0]["url"]
537-
r = api.request_get_with_cookie(project_id, url)
537+
r = api._request_get_with_cookie(project_id, url)
538538
# エラーがないことを確認する
539539

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

546546

547547
class TestProperty:

0 commit comments

Comments
 (0)