The fixture is duplicated. Funnily enough, the dupe in async is less
efficient than the one in the sync test module, but it allowed to spot
the bug at the previous commit, after using it more than the prepared
threshold.
Ungratefully dropping it.
from .utils import gc_collect
from .test_cursor import my_row_factory
+from .test_cursor import execmany, _execmany # noqa: F401
+execmany = execmany # avoid F811 underneath
pytestmark = pytest.mark.asyncio
await cur.execute("select '\u20ac'")
-@pytest.fixture(scope="function")
-async def execmany(svcconn):
- cur = svcconn.cursor()
- cur.execute(
- """
- drop table if exists execmany;
- create table execmany (id serial primary key, num integer, data text)
- """
- )
-
-
async def test_executemany(aconn, execmany):
cur = aconn.cursor()
await cur.executemany(