Skip to content

Commit

Permalink
WIP# 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Yashkov authored and Vladislav Yashkov committed Dec 2, 2024
1 parent c998823 commit d2bd386
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions python/tests/test_value_converter.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import datetime
import uuid
import zoneinfo
from decimal import Decimal
from enum import Enum
from ipaddress import IPv4Address
from typing import Any, Dict, List, Tuple, Union
import sys

import pytest
from psqlpy import ConnectionPool
Expand Down Expand Up @@ -57,6 +57,7 @@
from tests.conftest import DefaultPydanticModel, DefaultPythonModelClass
from typing_extensions import Annotated

uuid_ = uuid.uuid4()
pytestmark = pytest.mark.anyio
now_datetime = datetime.datetime.now()
now_datetime_with_tz = datetime.datetime(
Expand All @@ -69,6 +70,7 @@
142574,
tzinfo=datetime.timezone.utc,
)

now_datetime_with_tz_in_asia_jakarta = datetime.datetime(
2024,
4,
Expand All @@ -77,9 +79,21 @@
3,
46,
142574,
tzinfo=zoneinfo.ZoneInfo(key="Asia/Jakarta"),
tzinfo=datetime.timezone.utc,
)
uuid_ = uuid.uuid4()
if sys.version_info >= (3, 9):
import zoneinfo

now_datetime_with_tz_in_asia_jakarta = datetime.datetime(
2024,
4,
13,
17,
3,
46,
142574,
tzinfo=zoneinfo.ZoneInfo(key="Asia/Jakarta"),
)


async def test_as_class(
Expand Down

0 comments on commit d2bd386

Please sign in to comment.