Implemented the full clean rewrite for Gitea
All checks were successful
Test blackout notifier / test (push) Successful in 3m41s
Hourly blackout check / check (push) Successful in 8s

This commit is contained in:
Meghdad
2026-07-17 04:33:16 +03:30
parent d7f53ba234
commit 4218e4ac36
30 changed files with 1437 additions and 384 deletions

25
tests/conftest.py Normal file
View File

@@ -0,0 +1,25 @@
from __future__ import annotations
from datetime import datetime
import pytest
from blackout_notifier.models import TEHRAN, Outage
@pytest.fixture
def now() -> datetime:
return datetime(2026, 7, 17, 8, 0, tzinfo=TEHRAN)
@pytest.fixture
def outage() -> Outage:
return Outage(
outage_number="404992999001",
outage_date="1405/04/27",
start_time="09:00",
stop_time="11:00",
address="فیدر آزمایشی",
reason="مدیریت بار",
is_planned=True,
)