"""Test FogSettings asset parsing."""

import pytest

from sagemap.assets import FogSettings

from .conftest import create_context, create_writing_context, load_asset_bytes


@pytest.mark.skip(reason="No test data available")
def test_fog_settings():
    """Test FogSettings asset parsing."""
    asset_bytes = load_asset_bytes("FogSettings")

    context = create_context(asset_bytes, "FogSettings")
    result = FogSettings.parse(context)
    assert result is not None
    assert hasattr(result, "version")


@pytest.mark.skip(reason="No test data available")
def test_fog_settings_write():
    """Test FogSettings asset writing."""
    asset_bytes = load_asset_bytes("FogSettings")

    # Parse the asset
    parse_context = create_context(asset_bytes, "FogSettings")
    result = FogSettings.parse(parse_context)

    # Write the asset
    write_context = create_writing_context("FogSettings")
    result.write(write_context)
    written_bytes = write_context.stream.getvalue()

    # Compare
    assert written_bytes == asset_bytes
