mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
fix(integration): fix path
This commit is contained in:
@@ -2,18 +2,19 @@ import os
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
import pytiled_parser
|
||||
|
||||
print(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
TESTS_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
|
||||
TEST_DATA = TESTS_DIR / "test_data"
|
||||
|
||||
|
||||
def test_map_simple():
|
||||
"""
|
||||
TMX with a very simple spritesheet tile set and some properties.
|
||||
"""
|
||||
map = pytiled_parser.parse_tile_map(Path("test_data/test_map_simple.tmx"))
|
||||
|
||||
test_map = pytiled_parser.parse_tile_map(TEST_DATA / "test_map_simple.tmx")
|
||||
|
||||
# map
|
||||
# unsure how to get paths to compare propperly
|
||||
|
||||
Reference in New Issue
Block a user