(real_connection: sqlite3.Connection, statement: str)
| 193 | loop = asyncio.get_running_loop() |
| 194 | |
| 195 | def execute(real_connection: sqlite3.Connection, statement: str) -> sqlite3.Cursor: |
| 196 | if "PRAGMA journal_mode" in statement: |
| 197 | loop.call_soon_threadsafe(execute_started.set) |
| 198 | return real_connection.execute(statement) |
| 199 | |
| 200 | patch_connection(mocker, execute=execute) |
| 201 | lock: Final[AsyncReadWriteLock] = AsyncReadWriteLock(lock_file, is_singleton=False) |
no test coverage detected