| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Python port of Testcontainers - a library that supports pytest tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
This repository contains:
Python Implementation (main directory)
Java Reference Implementation (java_origin/ directory)
Install the package:
pip install testcontainers-pythonUse a container in your tests:
from testcontainers.postgres import PostgresContainer
import sqlalchemy
def test_with_postgres():
with PostgresContainer("postgres:16") as postgres:
engine = sqlalchemy.create_engine(postgres.get_connection_url())
# Your test code hereSee LICENSE.
Copyright (c) 2015 - 2021 Richard North and other authors.
MS SQL Server module is (c) 2017 - 2021 G DATA Software AG and other authors.
Hashicorp Vault module is (c) 2017 - 2021 Capital One Services, LLC and other authors.
See contributors for all contributors.
| Back | FazBrowse Home | New Git URL |