No project description provided
Project description
pytest-django-liveserver-ssl
Add live_server_ssl
fixture for pytest-django.
Installation
pip install pytest-django-liveserver-ssl
or from git
pip install -e git+https://githib.com/Apkawa/pytest-django-liveserver-ssl.git@master#egg=pytest-django-liveserver-ssl
Usage
import requests
def test_live_server_connection(live_server_ssl):
assert live_server_ssl.remote_url.startswith("https://localhost:")
assert live_server_ssl.url.startswith("http://0.0.0.0:")
response = requests.get(live_server_ssl.remote_url, verify=False)
assert response.text == "OK"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytest-django-liveserver-ssl-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8731e6abc9ebde66508ba5123c00cea014c48dff799888bd66999c3b2c95eba |
|
MD5 | 51941eecd8a49eef75dbd22c152f212a |
|
BLAKE2b-256 | ea883b68e0de3c5723c57227656fba161ed4c9b99b96e1cf19f6d52f67fc6a8a |
Close
Hashes for pytest_django_liveserver_ssl-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f0bd2646c1ea3d2f85e1a9c64c21eba1cb21522e9cef6cb0871b7c7acba2c5 |
|
MD5 | 2c3c07508c7c8c0226114274c3d40320 |
|
BLAKE2b-256 | 4256d002141a1a768420dfee6d99b5202c2e48c5dc923dd6844b6c1555d08eb0 |