ballistica/tests/test_ui_v1/test_imports.py
2024-11-12 12:38:29 -08:00

26 lines
702 B
Python

# Released under the MIT License. See LICENSE for details.
#
"""Testing asset manager functionality."""
from __future__ import annotations
import os
import pytest
from batools import apprun
FAST_MODE = os.environ.get('BA_TEST_FAST_MODE') == '1'
@pytest.mark.skipif(
apprun.test_runs_disabled(), reason=apprun.test_runs_disabled_reason()
)
@pytest.mark.skipif(FAST_MODE, reason='fast mode')
def test_imports() -> None:
"""Test imports for our featureset."""
# Make sure our package and binary module can be cleanly imported by
# themselves.
apprun.python_command('import bauiv1', purpose='import testing')
apprun.python_command('import _bauiv1', purpose='import testing')