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

Uploaded Source

Built Distribution

pytest_django_liveserver_ssl-0.0.2-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pytest-django-liveserver-ssl-0.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for pytest-django-liveserver-ssl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d8731e6abc9ebde66508ba5123c00cea014c48dff799888bd66999c3b2c95eba
MD5 51941eecd8a49eef75dbd22c152f212a
BLAKE2b-256 ea883b68e0de3c5723c57227656fba161ed4c9b99b96e1cf19f6d52f67fc6a8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_django_liveserver_ssl-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for pytest_django_liveserver_ssl-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24f0bd2646c1ea3d2f85e1a9c64c21eba1cb21522e9cef6cb0871b7c7acba2c5
MD5 2c3c07508c7c8c0226114274c3d40320
BLAKE2b-256 4256d002141a1a768420dfee6d99b5202c2e48c5dc923dd6844b6c1555d08eb0

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