Skip to content

Commit

Permalink
fix: unchanged file name and path
Browse files Browse the repository at this point in the history
  • Loading branch information
LaoshuBaby committed Feb 28, 2024
1 parent 3fd394d commit 2d5cac1
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions tests/cases/load_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ def setUp(self) -> None:
self.map = yuheng.Waifu()

def test_load_file_OSMWebsite(self):
FILENAME = "OSMWebsite_export.osm"
FILENAME = "extract_osmwebsite_bbox_weihaichengshantou.osm"
data_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "assets", FILENAME
os.path.dirname(os.path.realpath(__file__)),
"..",
"assets",
"osm",
FILENAME,
)
self.map.read(mode="file", file_path=data_path)
m = self.map
Expand All @@ -26,9 +30,13 @@ def test_load_file_OSMWebsite(self):
assert len(m.relation_dict) == 14

def test_load_file_JOSM(self):
FILENAME = "JOSM_export.osm"
FILENAME = "extract_josm_bbox_qingzhou.osm"
data_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "assets", FILENAME
os.path.dirname(os.path.realpath(__file__)),
"..",
"assets",
"osm",
FILENAME,
)
self.map.read(mode="file", file_path=data_path)
m = self.map
Expand All @@ -38,9 +46,13 @@ def test_load_file_JOSM(self):
assert len(m.relation_dict) == 5

def test_load_file_level0(self):
FILENAME = "level0_export.osm"
FILENAME = "extract_level0_newdata.osm"
data_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "assets", FILENAME
os.path.dirname(os.path.realpath(__file__)),
"..",
"assets",
"osm",
FILENAME,
)
self.map.read(mode="file", file_path=data_path)
m = self.map
Expand Down

0 comments on commit 2d5cac1

Please sign in to comment.