Skip to main content

No project description provided

Project description

Documentation Status

ci Codecov

PyPi PyPi Python versions License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_django_liveserver_ssl-0.0.3.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_django_liveserver_ssl-0.0.3-py2.py3-none-any.whl (10.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest_django_liveserver_ssl-0.0.3.tar.gz.

File metadata

File hashes

Hashes for pytest_django_liveserver_ssl-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3b91a0abdba55b783fc4ba5a2c7e7df23c1c4717fb020c572cdbeba2e3d01683
MD5 87baf314996a7c24e71c94c2f0fe7826
BLAKE2b-256 b7a1cd661efcf2aaec032f48994d7041cb03aecfb4ad1f73684d4d0f6ccd85de

See more details on using hashes here.

File details

Details for the file pytest_django_liveserver_ssl-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_django_liveserver_ssl-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d7c6545038c2c5e107d75cb50e26735da614d240179210e9584ca5a10b5ac144
MD5 ab34462a9ee8314bb206904edc89de72
BLAKE2b-256 88af82bd70cd750296656551057a444f7905ede3329ebcdb6a407206551a24fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page