Ligare.database.testing

Libraries, fixtures, mocks, and other utilities for tests using SQLAlchemy, Alembic, or Ligare.database.

Functions

_get_bases_parameter(request)

_set_up_database_container(bases)

mock_postgresql_connection(mocker)

set_up_database(request)

set_up_database_container(request)

Ligare.database.testing.mock_postgresql_connection(mocker)[source]
Return type:

Generator[MagicMock | AsyncMock | NonCallableMagicMock, MagicMock, None]

Ligare.database.testing.set_up_database(request)[source]
Return type:

Generator[tuple[Session, Connection], Any, None]

Ligare.database.testing.set_up_database_container(request)[source]
Return type:

Injector

Modules

config