Skip to content

testcontainers/tc-guide-getting-started-with-testcontainers-for-python

Repository files navigation

Getting started with Testcontainers for Python

This is sample code for Getting started with Testcontainers for Python guide.

1. Setup Environment

For example:

$ python --version
Python 3.12.0

2. Setup Project

  • Clone the repository
git clone https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-python.git
cd tc-guide-getting-started-with-testcontainers-for-python
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  • Open the tc-guide-getting-started-with-testcontainers-for-python project in your favorite IDE.

3. Run Tests

Run the command to run the tests.

$ pytest

The tests should pass.

About

Getting started with Testcontainers for Java guide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages