Skip to content

Commit 7d4a7ff

Browse files
committed
ディレクトリを移動するコードを削除
1 parent 7ba701d commit 7d4a7ff

8 files changed

+0
-26
lines changed

tests/test_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import configparser
99
import datetime
10-
import os
1110
import uuid
1211
from typing import Any
1312

@@ -31,8 +30,6 @@
3130
from annofabapi.wrapper import TaskFrameKey
3231
from tests.utils_for_test import WrapperForTest, create_csv_for_task
3332

34-
# プロジェクトトップに移動する
35-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
3633
inifile = configparser.ConfigParser()
3734
inifile.read("./pytest.ini", "UTF-8")
3835

tests/test_api2.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
"""
55

66
import configparser
7-
import os
87

98
import annofabapi
109
from tests.utils_for_test import WrapperForTest
1110

12-
# プロジェクトトップに移動する
13-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
1411
inifile = configparser.ConfigParser()
1512
inifile.read("./pytest.ini", "UTF-8")
1613
project_id = inifile["annofab"]["project_id"]

tests/test_local_parser.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import configparser
2-
import os
32
import zipfile
43
from pathlib import Path
54

@@ -18,8 +17,6 @@
1817
SimpleAnnotationZipParserByTask,
1918
)
2019

21-
# プロジェクトトップに移動する
22-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
2320
inifile = configparser.ConfigParser()
2421
inifile.read("./pytest.ini", "UTF-8")
2522

tests/test_local_resource.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
import annofabapi.exceptions
1010
from annofabapi.resource import build, build_from_env
1111

12-
# プロジェクトトップに移動する
13-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
14-
1512

1613
class TestBuild:
1714
# def test_build_from_netrc(self):

tests/test_local_wrapper.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import os
21
from pathlib import Path
32

43
from annofabapi.wrapper import Wrapper
54

6-
# プロジェクトトップに移動する
7-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
8-
95
data_dir = Path("./tests/data")
106

117

tests/test_sandbox.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
"""
44

55
import configparser
6-
import os
76

87
import annofabapi
98

10-
# プロジェクトトップに移動する
11-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
129
inifile = configparser.ConfigParser()
1310
inifile.read("./pytest.ini", "UTF-8")
1411

tests/test_segmentation.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import shutil
32
import uuid
43
from pathlib import Path
@@ -8,9 +7,6 @@
87

98
from annofabapi.segmentation import read_binary_image, write_binary_image
109

11-
# プロジェクトトップに移動する
12-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
13-
1410
data_dir = Path("./tests/data/segmentation")
1511
out_dir = Path("./tests/out/segmentation")
1612

tests/util/test_local_annotation_specs.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import configparser
2-
import os
32
from pathlib import Path
43

54
import pytest
65

76
from annofabapi.util.annotation_specs import Lang, get_english_message, get_message_with_lang
87

9-
# プロジェクトトップに移動する
10-
os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../")
118
inifile = configparser.ConfigParser()
129
inifile.read("./pytest.ini", "UTF-8")
1310

0 commit comments

Comments
 (0)