26 lines
529 B
Python
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,
|
|
)
|