We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e827e commit 9730dc1Copy full SHA for 9730dc1
1 file changed
tests/resources/testing_data.py
@@ -1,4 +1,5 @@
1
import json
2
+from pathlib import Path
3
4
compat = {
5
"name": "layer",
@@ -7784,7 +7785,11 @@
7784
7785
],
7786
}
7787
-with open("resources/collection-1.json", "r", encoding="utf-16") as input_file:
7788
+# Get the directory of this file to create absolute path
7789
+current_dir = Path(__file__).parent
7790
+collection_path = current_dir / "collection-1.json"
7791
+
7792
+with open(collection_path, "r", encoding="utf-16") as input_file:
7793
collection = json.load(input_file)
7794
7795
0 commit comments