[testenv:py{36,37,38}]
commands =
- pytest ../tests
+ pytest ../tests {posargs}
passenv = PG* PSYCOPG3_TEST_DSN PYTEST_ADDOPTS PSYCOPG3_IMPL
deps =
- pytest >= 5.3, < 6
- pytest-asyncio >= 0.12.0, < 0.13
+ pytest >= 6, < 6.1
+ pytest-asyncio >= 0.14.0, < 0.15
[testenv]
commands =
- python ../psycopg3/setup.py develop
pytest ../tests {posargs}
passenv = PG* PSYCOPG3_TEST_DSN PYTEST_ADDOPTS PSYCOPG3_IMPL
deps =
- pytest >= 5.3, < 6
- pytest-asyncio >= 0.12.0, < 0.13
+ pytest >= 6, < 6.1
+ pytest-asyncio >= 0.14.0, < 0.15
-e {toxinidir}/../psycopg3
await cur.execute("select '\u20ac'")
-@pytest.fixture(scope="session")
-async def _execmany(svcconn):
+@pytest.fixture(scope="function")
+async def execmany(svcconn):
cur = svcconn.cursor()
cur.execute(
"""
svcconn.commit()
-@pytest.fixture(scope="function")
-async def execmany(svcconn, _execmany):
- cur = svcconn.cursor()
- cur.execute("truncate table execmany")
- svcconn.commit()
-
-
async def test_executemany(aconn, execmany):
cur = aconn.cursor()
await cur.executemany(