Coverage for src/pytest_samples/database/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.4.2, created at 2024-02-20 19:47 +0000

1"""This module contains the interface to the database for keeping track 

2of tests that have been run and files containing tests. The main purpose 

3if this is to decouple the underlying database engine from the main 

4plugin code and to provide more easily accessible functions to interact 

5with the database. 

6""" 

7 

8__all__ = [ 

9 "TestFile", "TestItem", 

10 "EngineBase", "Engine", 

11 "DatabaseError", "IntegrityError", "MultipleResultsFound", 

12 "NoResultFound", "DetachedInstanceError", "InactiveSessionError", 

13 "RelativePathError", "EngineDisposedError", 

14 "enable_logging", 

15 "Session", "TestFileHashProvider" 

16] 

17 

18from ._defs import TestFile, TestItem 

19from ._engine import EngineBase, Engine 

20from ._exceptions import DatabaseError, IntegrityError, \ 

21 MultipleResultsFound, NoResultFound, DetachedInstanceError, \ 

22 InactiveSessionError, RelativePathError, EngineDisposedError 

23from ._logging import enable_logging 

24from ._session import Session, TestFileHashProvider