Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit f87e1b3

Browse files
committed
Fix typo in tests and missing comma in CI
1 parent d48766e commit f87e1b3

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/test-suite.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,17 @@ jobs:
4141
mssql:
4242
image: mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04
4343
env:
44-
MSSQL_SA_PASSWORD: "mssql123mssql"
44+
MSSQL_SA_PASSWORD: "Mssql123$#mssql"
4545
ACCEPT_EULA: "Y"
46-
MSSQL_PID: "Developer"
46+
MSSQL_PID: Express
4747
ports:
48-
- "1433:1433"
48+
- 1433/tcp
49+
options: >-
50+
--health-cmd "/opt/mssql-tools/bin/sqlcmd -U sa -P $MSSQL_SA_PASSWORD -Q 'select 1' -b -o /dev/null"
51+
--health-interval 60s
52+
--health-timeout 30s
53+
--health-start-period 20s
54+
--health-retries 3
4955
5056
steps:
5157
- uses: "actions/checkout@v3"
@@ -73,8 +79,8 @@ jobs:
7379
mysql+asyncmy://username:password@localhost:3306/testsuite,
7480
postgresql://username:password@localhost:5432/testsuite,
7581
postgresql+aiopg://username:[email protected]:5432/testsuite,
76-
postgresql+asyncpg://username:password@localhost:5432/testsuite
77-
mssql://sa:mssql123mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server,
78-
mssql+pyodbc://sa:mssql123mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server,
79-
mssql+aioodbc://sa:mssql123mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server
82+
postgresql+asyncpg://username:password@localhost:5432/testsuite,
83+
mssql://sa:Mssql123$#mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server,
84+
mssql+pyodbc://sa:Mssql123$#mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server,
85+
mssql+aioodbc://sa:Mssql123$#mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server
8086
run: "scripts/test"

tests/test_databases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ async def test_queries_with_expose_backend_connection(database_url):
934934
cursor = await raw_connection.cursor()
935935
await cursor.execute(select_query)
936936
results = await cursor.fetchall()
937-
elif database.url.scheme == "mysql+asyncmy" or data:
937+
elif database.url.scheme == "mysql+asyncmy":
938938
async with raw_connection.cursor() as cursor:
939939
await cursor.execute(select_query)
940940
results = await cursor.fetchall()

0 commit comments

Comments
 (0)