audentes-0.1.9
توضیحات
A package for writing component tests with docker compose
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | audentes-0.1.9 |
| نام | audentes |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Magnus Odman |
| ایمیل نویسنده | magnus.odman@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/magnus.odman/audentes |
| آدرس اینترنتی | https://pypi.org/project/audentes/ |
| مجوز | - |
Audentes
========
A package for writing component tests with docker compose
Example:
docker-compose.yml
~~~~
version: '2.1'
services:
web:
image: nginx
ports:
- "80"
~~~~
test.py
~~~~
import audentes
import requests
system = audentes.load_system() #Defaults to docker-comose.yml
system.start()
system.wait_for_service("web") #Waits for web service to respond with status code 200 on /
host = system.endpoint("web").host() # Now we can do some testing
response = requests.get("http://{}/".format(host))
assert response.status_code == 200 # Assert that we get the response we expect
~~~~
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | ruamel.yaml |
نحوه نصب
نصب پکیج whl audentes-0.1.9:
pip install audentes-0.1.9.whl
نصب پکیج tar.gz audentes-0.1.9:
pip install audentes-0.1.9.tar.gz