Files
daily-blackout-check/tests/conftest.py
Meghdad 4218e4ac36
All checks were successful
Test blackout notifier / test (push) Successful in 3m41s
Hourly blackout check / check (push) Successful in 8s
Implemented the full clean rewrite for Gitea
2026-07-17 04:33:16 +03:30

26 lines
529 B
Python

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