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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26fc2abcf8d3166f8f45233beffd146f79ca156602b6de1d1d7a23d63b302219 |
|
MD5 | 7c67148db3f41c8b0bc044648c0324bb |
|
BLAKE2b-256 | b52724141662a077056e72bac9f0265613f677b76570e6206a4333fb07c12c45 |
Close
Hashes for pytest_django_liveserver_ssl-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e0890e9ef0668c361a054554659f5016075fe641d64ac5659d59f0377689abf |
|
MD5 | 5b3a56d249f390efd51affd7aba8f0ac |
|
BLAKE2b-256 | d900a292ddd09b712d379c9af127dd3b1a8d898aac7811fa059d50923ebd4cb1 |