Skip to content

Commit 1f2d6ee

Browse files
committed
dataclass.project_member.py: 抜き取り受入率を指定
1 parent aac50dc commit 1f2d6ee

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

annofabapi/dataclass/project_member.py

+3
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ class ProjectMember:
4949

5050
sampling_inspection_rate: Optional[int]
5151
"""メンバー固有の抜取検査率。0-100のパーセント値で指定する。値が指定された場合、プロジェクトの抜取検査率を指定の値で上書きする。"""
52+
53+
sampling_acceptance_rate: Optional[int]
54+
"""メンバー固有の抜取受入率。"""

tests/test_api.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,9 @@ def test_annotation_specs():
134134
annotation_specs_histories = api.get_annotation_specs_histories(project_id)[0]
135135
assert type(annotation_specs_histories) == list
136136

137-
annotation_spec, _ = api.get_annotation_specs(
138-
project_id, query_params={"history_id": annotation_specs_histories[0]["history_id"]})
139-
assert type(annotation_spec) == dict
140-
141-
old_annotation_specs_url = annotation_specs_histories[0]["url"]
142-
old_annotation_specs = wrapper.get_annotation_specs_from_url(project_id, old_annotation_specs_url)
143-
assert type(old_annotation_specs) == dict
137+
old_annotation_spec, _ = api.get_annotation_specs(
138+
project_id, query_params={"history_id": annotation_specs_histories[1]["history_id"]})
139+
assert type(old_annotation_spec) == dict
144140

145141

146142
def test_login():
@@ -360,9 +356,6 @@ def test_task():
360356
print(f"get_task_histories")
361357
assert len(api.get_task_histories(project_id, test_task_id)[0]) > 0
362358

363-
print(f"get_task_validation")
364-
assert type(api.get_task_validation(project_id, test_task_id)[0]) == dict
365-
366359
print(f"delete_task")
367360
assert type(api.delete_task(project_id, test_task_id)[0]) == dict
368361

0 commit comments

Comments
 (0)