mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 17:03:05 +02:00
- Add comprehensive tests for all packages (3572 tests, 100% branch coverage) - Split oversized test files to stay under 500-line limit - Add per-file ruff ignores for test-appropriate suppressions - Fix _cache_decks.py to properly convert JSON lists to tuples - Add session-scoped conftest fixture for logging handler cleanup (Python 3.14) - Update ruff pre-commit hook to v0.15.2 - Add codespell ignore words for test data - Add generated output files to .gitignore
37 lines
909 B
Python
37 lines
909 B
Python
"""Tests for _q24_classical module."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
def test_detection_concept() -> None:
|
|
"""_detection_concept returns slides."""
|
|
from python_pkg.praca_magisterska_video._q24_classical import (
|
|
_detection_concept,
|
|
)
|
|
|
|
slides = _detection_concept()
|
|
assert isinstance(slides, list)
|
|
assert len(slides) == 1
|
|
|
|
|
|
def test_hog_svm_demo() -> None:
|
|
"""_hog_svm_demo returns slides."""
|
|
from python_pkg.praca_magisterska_video._q24_classical import (
|
|
_hog_svm_demo,
|
|
)
|
|
|
|
slides = _hog_svm_demo()
|
|
assert isinstance(slides, list)
|
|
assert len(slides) == 1
|
|
|
|
|
|
def test_viola_jones_demo() -> None:
|
|
"""_viola_jones_demo returns slides."""
|
|
from python_pkg.praca_magisterska_video._q24_classical import (
|
|
_viola_jones_demo,
|
|
)
|
|
|
|
slides = _viola_jones_demo()
|
|
assert isinstance(slides, list)
|
|
assert len(slides) == 1
|