mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-27 22:59:48 +01:00
14 lines
327 B
Python
14 lines
327 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from pytiled_parser import UnknownFormat, parse_map
|
|
|
|
TESTS_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
|
|
MAP_FILE = TESTS_DIR / "test_data/invalid_format.garbage"
|
|
|
|
def test_map_invalid_format():
|
|
with pytest.raises(UnknownFormat) as e:
|
|
parse_map(MAP_FILE)
|