Skip to content

Commit bfa62e8

Browse files
committed
fix
1 parent 9060698 commit bfa62e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_api/test_api_sqla_with_includes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ async def test_create_with_relationship_to_the_same_table(self):
10441044
"meta": None,
10451045
}
10461046

1047-
async def test_create_with_timestamp(self, async_session: AsyncSession):
1047+
async def test_create_with_timestamp_and_fetch(self, async_session: AsyncSession):
10481048
resource_type = "contains_timestamp_model"
10491049

10501050
class ContainsTimestampAttrsSchema(BaseModel):
@@ -1087,7 +1087,10 @@ class ContainsTimestampAttrsSchema(BaseModel):
10871087
stms = select(ContainsTimestamp).where(ContainsTimestamp.id == int(entity_id))
10881088
entity_model: Optional[ContainsTimestamp] = (await async_session.execute(stms)).scalar_one_or_none()
10891089
assert entity_model
1090-
assert entity_model.timestamp.isoformat() == create_timestamp.replace(tzinfo=None).isoformat()
1090+
assert (
1091+
entity_model.timestamp.replace(tzinfo=None).isoformat()
1092+
== create_timestamp.replace(tzinfo=None).isoformat()
1093+
)
10911094

10921095
params = {
10931096
"filter": json.dumps(

0 commit comments

Comments
 (0)