Some checks failed
CI / lint (push) Has been cancelled
CI / test (macos-latest, 3.10) (push) Has been cancelled
CI / test (macos-latest, 3.11) (push) Has been cancelled
CI / test (macos-latest, 3.12) (push) Has been cancelled
CI / test (ubuntu-latest, 3.10) (push) Has been cancelled
CI / test (ubuntu-latest, 3.11) (push) Has been cancelled
CI / test (ubuntu-latest, 3.12) (push) Has been cancelled
CI / test (windows-latest, 3.10) (push) Has been cancelled
CI / test (windows-latest, 3.11) (push) Has been cancelled
CI / test (windows-latest, 3.12) (push) Has been cancelled
17 lines
428 B
Python
17 lines
428 B
Python
"""Smoke tests — verify the package imports and exposes its version."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import otko
|
|
|
|
|
|
def test_version_exposed() -> None:
|
|
assert isinstance(otko.__version__, str)
|
|
assert otko.__version__.count(".") >= 2
|
|
|
|
|
|
def test_app_module_importable() -> None:
|
|
"""The bootstrap module must import without instantiating QApplication."""
|
|
from otko import app
|
|
|
|
assert callable(app.run)
|