ExampleWrapper¶
-
class
tests.base.
ExampleWrapper
(*args, **kwargs)[source]¶ -
__init__
(*args, **kwargs)[source] - Parameters
db (str) – Relative / absolute path to SQLite3 database file to use.
isolation_level – Isolation level for SQLite3 connection. Defaults to
None
(autocommit). See the Python SQLite3 Docs for more information.
- Key int db_timeout
Amount of time to wait for any SQLite3 locks to expire before giving up
- Key str query_mode
Either
'flat'
(query returns tuples) or'dict'
(query returns dicts). More details in PyDoc block underquery_mode
- Key bool memory_persist
Use a shared in-memory database, which can be accessed by other instances of this class (in this process) - which is cleared after all memory connections are closed. Shortcut for
db='file::memory:?cache=shared'
-