mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 21:37:57 +08:00
26 lines
714 B
Python
26 lines
714 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 batemplatefs', purpose='import testing')
|
|
apprun.python_command('import _batemplatefs', purpose='import testing')
|