File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 44"""
55
66import uuid
7- from typing import TYPE_CHECKING , Sequence , Union
7+ from collections .abc import Sequence
8+ from typing import TYPE_CHECKING
89
910from app .core .schools .schools_type import SchoolType
1011
1415import sqlalchemy as sa
1516from alembic import op
1617
17- from app .types .sqlalchemy import TZDateTime
18-
1918# revision identifiers, used by Alembic.
2019revision : str = "91fadc90f892"
2120down_revision : str | None = "2880c583d7f1"
@@ -84,19 +83,19 @@ def test_upgrade(
8483) -> None :
8584 assert (
8685 alembic_connection .execute (
87- sa .text (f"SELECT promo FROM core_user WHERE user_id = { user_id_23 } " ),
88- ).first ()[9 ]
86+ sa .text (f"SELECT promo FROM core_user WHERE user_id = ' { user_id_23 } ' " ),
87+ ).first ()[0 ]
8988 == 2023
9089 )
9190 assert (
9291 alembic_connection .execute (
93- sa .text (f"SELECT promo FROM core_user WHERE user_id = { user_id_2023 } " ),
94- ).first ()[9 ]
92+ sa .text (f"SELECT promo FROM core_user WHERE user_id = ' { user_id_2023 } ' " ),
93+ ).first ()[0 ]
9594 == 2023
9695 )
9796 assert (
9897 alembic_connection .execute (
99- sa .text (f"SELECT promo FROM core_user WHERE user_id = { user_id_null } " ),
100- ).first ()[9 ]
98+ sa .text (f"SELECT promo FROM core_user WHERE user_id = ' { user_id_null } ' " ),
99+ ).first ()[0 ]
101100 is None
102101 )
You can’t perform that action at this time.
0 commit comments