"""Tests de godot_map_asset_dir (pura, offline)."""

import os
import sys

import pytest

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from core.godot_map_asset_dir import godot_map_asset_dir  # noqa: E402


def test_all_kinds():
    assert godot_map_asset_dir("sprite") == "sprites"
    assert godot_map_asset_dir("pixelart") == "sprites"
    assert godot_map_asset_dir("tileset") == "tilesets"
    assert godot_map_asset_dir("vfx") == "vfx"
    assert godot_map_asset_dir("sfx") == "audio/sfx"
    assert godot_map_asset_dir("music") == "audio/music"
    assert godot_map_asset_dir("model") == "models"


def test_case_insensitive():
    assert godot_map_asset_dir("PixelArt") == "sprites"
    assert godot_map_asset_dir("  MODEL ") == "models"


def test_unknown_kind_raises():
    with pytest.raises(ValueError):
        godot_map_asset_dir("hologram")
