Implemented the full clean rewrite for Gitea
This commit is contained in:
25
tests/conftest.py
Normal file
25
tests/conftest.py
Normal 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,
|
||||
)
|
||||
Reference in New Issue
Block a user