style(analysis): consolidate test imports at top of file (PEP 8)
This commit is contained in:
@@ -4,7 +4,10 @@ from __future__ import annotations
|
||||
|
||||
from datetime import UTC, datetime
|
||||
|
||||
from cerbero_bite.analysis.data_audit import _expected_ticks # noqa: PLC2701
|
||||
from cerbero_bite.analysis.data_audit import ( # noqa: PLC2701
|
||||
_detect_gaps,
|
||||
_expected_ticks,
|
||||
)
|
||||
|
||||
|
||||
def test_expected_ticks_basic() -> None:
|
||||
@@ -45,9 +48,6 @@ def test_expected_ticks_exact_quarter_boundary_is_excluded() -> None:
|
||||
assert _expected_ticks(since, until) == 3
|
||||
|
||||
|
||||
from cerbero_bite.analysis.data_audit import _detect_gaps # noqa: PLC2701
|
||||
|
||||
|
||||
def test_detect_gaps_returns_empty_when_no_gap() -> None:
|
||||
ts = [
|
||||
datetime(2026, 5, 12, 12, 0, tzinfo=UTC),
|
||||
|
||||
Reference in New Issue
Block a user