diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 9db42247..5fc27d78 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -45,7 +45,7 @@ jobs: ACCEPT_EULA: "Y" MSSQL_PID: "Developer" ports: - - "1433:1433" + - 1433:1433 steps: - uses: "actions/checkout@v3" @@ -73,7 +73,7 @@ jobs: mysql+asyncmy://username:password@localhost:3306/testsuite, postgresql://username:password@localhost:5432/testsuite, postgresql+aiopg://username:password@127.0.0.1:5432/testsuite, - postgresql+asyncpg://username:password@localhost:5432/testsuite + postgresql+asyncpg://username:password@localhost:5432/testsuite, mssql://sa:mssql123mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server, mssql+pyodbc://sa:mssql123mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server, mssql+aioodbc://sa:mssql123mssql@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server diff --git a/tests/test_databases.py b/tests/test_databases.py index a64fac08..fb7d0ead 100644 --- a/tests/test_databases.py +++ b/tests/test_databases.py @@ -934,7 +934,7 @@ async def test_queries_with_expose_backend_connection(database_url): cursor = await raw_connection.cursor() await cursor.execute(select_query) results = await cursor.fetchall() - elif database.url.scheme == "mysql+asyncmy" or data: + elif database.url.scheme == "mysql+asyncmy": async with raw_connection.cursor() as cursor: await cursor.execute(select_query) results = await cursor.fetchall()