set timezone to Rome (#153)
This commit is contained in:
parent
f04942eefe
commit
cb0fe7b5fc
|
@ -2,6 +2,7 @@ import importlib.resources
|
|||
import os
|
||||
from collections import UserList
|
||||
from datetime import datetime, timedelta, timezone
|
||||
import time
|
||||
from typing import Union
|
||||
from uuid import UUID
|
||||
|
||||
|
@ -36,6 +37,12 @@ def generate_publication_status(published):
|
|||
return PublicationStatus.COMPLETED if published else PublicationStatus.WAITING
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def set_timezone():
|
||||
os.environ["TZ"] = "Europe/Rome"
|
||||
time.tzset()
|
||||
|
||||
|
||||
def generate_event_status(published):
|
||||
return (
|
||||
EventPublicationStatus.COMPLETED
|
||||
|
|
Loading…
Reference in New Issue