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.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

pytest_django_liveserver_ssl-0.0.1-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-django-liveserver-ssl-0.0.1.tar.gz.

File metadata

  • Download URL: pytest-django-liveserver-ssl-0.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for pytest-django-liveserver-ssl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 26fc2abcf8d3166f8f45233beffd146f79ca156602b6de1d1d7a23d63b302219
MD5 7c67148db3f41c8b0bc044648c0324bb
BLAKE2b-256 b52724141662a077056e72bac9f0265613f677b76570e6206a4333fb07c12c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_django_liveserver_ssl-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for pytest_django_liveserver_ssl-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e0890e9ef0668c361a054554659f5016075fe641d64ac5659d59f0377689abf
MD5 5b3a56d249f390efd51affd7aba8f0ac
BLAKE2b-256 d900a292ddd09b712d379c9af127dd3b1a8d898aac7811fa059d50923ebd4cb1

See more details on using hashes here.

Supported by

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