Skip to content

Commit 62fa344

Browse files
committed
tests: use absolute path to configuration file
1 parent 03641be commit 62fa344

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/mcpython/test_disk_cache_pytest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
)
5353
GEOTIFF_WIDTH = 512
5454
GEOTIFF_HEIGHT = 512
55-
MAPCACHE_TEMPLATE_CONFIG = "../data/mapcache_backend_template.xml"
55+
MAPCACHE_TEMPLATE_CONFIG = os.path.join(
56+
os.path.dirname(__file__), "..", "data", "mapcache_backend_template.xml"
57+
)
5658

5759
# --- Grid Parameters --- #
5860
INITIAL_RESOLUTION = 1000

tests/mcpython/test_sqlite_cache_pytest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
)
5454
GEOTIFF_WIDTH = 512
5555
GEOTIFF_HEIGHT = 512
56-
MAPCACHE_TEMPLATE_CONFIG = "../data/mapcache_backend_template.xml"
56+
MAPCACHE_TEMPLATE_CONFIG = os.path.join(
57+
os.path.dirname(__file__), "..", "data", "mapcache_backend_template.xml"
58+
)
5759

5860
# --- Grid Parameters --- #
5961
INITIAL_RESOLUTION = 1000

0 commit comments

Comments
 (0)