Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 954 Bytes

File metadata and controls

39 lines (26 loc) · 954 Bytes

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.