testcontainers_on_whales.postgres#

Module Contents#

Classes#

PostgresContainer

An abstract base class for context managers.

class testcontainers_on_whales.postgres.PostgresContainer(image='docker.io/library/postgres:alpine', username='test', password='test', database_name='test')[source]#

Bases: testcontainers_on_whales.Container

An abstract base class for context managers.

Parameters:
  • image (str) –

  • username (str) –

  • password (str) –

  • database_name (str) –

POSTGRES_PORT = 5432#
get_connection_url(driver='psycopg2')[source]#
Parameters:

driver (str) –

Return type:

str

get_sqlalchemy_engine()[source]#
Return type:

sqlalchemy.engine.Engine

readiness_probe()[source]#
Return type:

bool