Easy to use, simple to extend, pytest plugin that minimally leverages docker-py.
Project description
pytest-docker-py
1. Introduction
-
A plugin that keeps it simple and lets you:
- pull images - if not already pulled.
- start containers - with various, optional, parameters - i.e. ports; networks; volumes; commands.
- stop containers.
-
See test/integration/test_plugin.py for a working example.
2. Installation
- pip install pytest-docker-py
or
- pip install git+https://github.com/jameshnsears/pytest-docker-py@master
then
- create a test, similar to test/integration/test_plugin.py
- run pytest -s
3. Development / PR - on Ubuntu 18.04
- sudo apt-get install -y build-essential python3-pip python3-venv
- git clone https://github.com/jameshnsears/pytest-docker-py.git
- cd pytest-docker-py
3.1. Create Virtual Environment
- ./create-venv.sh
3.2. Unit Tests
- ./run-unit-tests.sh
3.3. Integration Tests
- ./run-integration-tests.sh
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-docker-py-1.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_docker_py-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc76e1f217a393f55dd6cb15bb23809d8f7bedb67af454d6fd36b58e9a5fe633 |
|
MD5 | 8cd41ae6d4589ef566cec043d58a5872 |
|
BLAKE2b-256 | 6813a716b3bee335594d9abb331cd1dc0256dbd87cf18eb62f185238dd6c45c6 |