# for sqlalchemy == "default", the alembic install will install
# current released SQLAlchemy version as a dependency
+ shutil.rmtree("build/", ignore_errors=True)
if coverage:
session.install("-e", ".")
else:
def mypy_check(session: nox.Session) -> None:
"""Run mypy type checking."""
+ shutil.rmtree("build/", ignore_errors=True)
session.install(*nox.project.dependency_groups(pyproject, "mypy"))
session.install("-e", ".")
sqlite_file=sqlite:///querytest.db
postgresql=postgresql://scott:tiger@127.0.0.1:5432/test
psycopg=postgresql+psycopg://scott:tiger@127.0.0.1:5432/test
+psycopg2=postgresql+psycopg2://scott:tiger@127.0.0.1:5432/test
mysql=mysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
mariadb=mariadb://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
mssql=mssql+pyodbc://scott:tiger^5HHH@mssql2022:1433/test?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes&Encrypt=Optional
)
def test_bulk_insert_wrong_cols(self):
- context = op_fixture("postgresql")
+ context = op_fixture("postgresql+psycopg2")
t1 = table(
"ins_table",
column("id", Integer),
context.assert_()
def test_bulk_insert_pg(self):
- context = self._test_bulk_insert("postgresql", False)
+ context = self._test_bulk_insert("postgresql+psycopg2", False)
context.assert_(
"INSERT INTO ins_table (id, v1, v2) "
"VALUES (%(id)s, %(v1)s, %(v2)s)"
)
def test_bulk_insert_pg_single(self):
- context = self._test_bulk_insert_single("postgresql", False)
+ context = self._test_bulk_insert_single("postgresql+psycopg2", False)
context.assert_(
"INSERT INTO ins_table (id, v1, v2) "
"VALUES (%(id)s, %(v1)s, %(v2)s)"