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)
|