Skip to content

Commit

Permalink
formated
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji38kwmt committed Jul 14, 2019
1 parent ed89f95 commit b0a3a92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.7.4'
__version__ = '0.8.0'
3 changes: 2 additions & 1 deletion annofabapi/resource.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import logging
import netrc
import os
import logging

from annofabapi import AnnofabApi, AnnofabApi2, Wrapper
from annofabapi.exceptions import AnnofabApiException

logger = logging.getLogger(__name__)


class Resource:
"""
AnnofabApi, Wrapperのインスタンスを保持するクラス
Expand Down
2 changes: 0 additions & 2 deletions annofabapi/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def download_annotation_archive(self, project_id: str, dest_path: str) -> str:
annofabapi.utils.download(url, dest_path)
return url


def download_full_annotation_archive(self, project_id: str, dest_path: str) -> str:
"""
FullアノテーションZIPをダウンロードする。
Expand All @@ -129,7 +128,6 @@ def download_full_annotation_archive(self, project_id: str, dest_path: str) -> s
annofabapi.utils.download(url, dest_path)
return url


def get_all_annotation_list(self, project_id: str,
query_params: Optional[Dict[str, Any]] = None) -> List[Dict[str, Any]]:
"""
Expand Down
3 changes: 3 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def test_annotation():
print("wrapper.download_annotation_archive")
wrapper.download_annotation_archive(project_id, f'{out_dir}/simple-annotation.zip')

print("wrapper.download_full_annotation_archive")
wrapper.download_full_annotation_archive(project_id, f'{out_dir}/full-annotation.zip')

if should_execute_job_api:
print("post_annotation_archive_update")
assert type(api.post_annotation_archive_update(project_id)[0]) == dict
Expand Down

0 comments on commit b0a3a92

Please sign in to comment.