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.
- 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.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pytest_docker_py-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5347de3d308a6d1451821d624e6842128078a19d1583ed3b59b41bcc7aea8b4c |
|
MD5 | d664105fcb7a80847b6aca7faf3dbd43 |
|
BLAKE2b-256 | ba14879f5f9f43aac69b250886e60ae47dbf3a82cf69b032e33160ba648a9940 |