File tree 1 file changed +16
-0
lines changed 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 9
9
from annofabapi .pydantic_models .simple_annotation import SimpleAnnotation
10
10
from annofabapi .pydantic_models .single_annotation import SingleAnnotation
11
11
from annofabapi .pydantic_models .task import Task
12
+ from annofabapi .pydantic_models .task_history import TaskHistory
12
13
13
14
inifile = configparser .ConfigParser ()
14
15
inifile .read ("./pytest.ini" , "UTF-8" )
@@ -35,6 +36,21 @@ def test__Task():
35
36
Task .from_dict (task )
36
37
37
38
39
+ def test__TaskHistory ():
40
+ content , _ = service .api .get_task_histories (project_id , task_id )
41
+ TaskHistory .from_dict (content [0 ])
42
+
43
+
44
+ # swagger.yamlの定義が間違っているためエラーが発生する
45
+ # swagger.yamlの定義が修正されるまでコメントアウトする
46
+ # def test__Comment():
47
+ # with tempfile.NamedTemporaryFile() as temp_file:
48
+ # service.wrapper.download_project_comments_url(project_id, temp_file.name)
49
+ # with open(temp_file.name) as f:
50
+ # comments = json.load(f)
51
+ # Comment.from_dict(comments[0])
52
+
53
+
38
54
def test__InputData ():
39
55
content , _ = service .api .get_input_data_list (project_id )
40
56
input_data = content ["list" ][0 ]
You can’t perform that action at this time.
0 commit comments