pytest-django-liveserver-ssl


Namepytest-django-liveserver-ssl JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/Apkawa/pytest-django-liveserver-ssl
SummaryNone
upload_time2025-01-09 16:17:30
maintainerNone
docs_urlNone
authorApkawa
requires_python<4,>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![Documentation Status](https://readthedocs.org/projects/pytest-django-liveserver-ssl/badge/?version=latest)](https://pytest-django-liveserver-ssl.readthedocs.io/en/latest/?badge=latest)

[![ci](https://github.com/Apkawa/pytest-django-liveserver-ssl/actions/workflows/ci.yml/badge.svg)](https://github.com/Apkawa/pytest-django-liveserver-ssl/actions/workflows/ci.yml)
[![Codecov](https://codecov.io/gh/Apkawa/pytest-django-liveserver-ssl/branch/master/graph/badge.svg)](https://codecov.io/gh/Apkawa/pytest-django-liveserver-ssl) </br>

[![PyPi](https://img.shields.io/pypi/v/pytest-django-liveserver-ssl.svg)](https://pypi.python.org/pypi/pytest-django-liveserver-ssl)
[![PyPi Python versions](https://img.shields.io/pypi/pyversions/pytest-django-liveserver-ssl.svg)](https://pypi.python.org/pypi/pytest-django-liveserver-ssl)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)</br>

# pytest-django-liveserver-ssl

Add `live_server_ssl` fixture for pytest-django.

# Installation

```bash
pip install pytest-django-liveserver-ssl
```

or from git

```bash
pip install -e git+https://githib.com/Apkawa/pytest-django-liveserver-ssl.git@master#egg=pytest-django-liveserver-ssl
```

# Usage

```python
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"
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Apkawa/pytest-django-liveserver-ssl",
    "name": "pytest-django-liveserver-ssl",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Apkawa",
    "author_email": "apkawa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b7/a1/cd661efcf2aaec032f48994d7041cb03aecfb4ad1f73684d4d0f6ccd85de/pytest_django_liveserver_ssl-0.0.3.tar.gz",
    "platform": null,
    "description": "[![Documentation Status](https://readthedocs.org/projects/pytest-django-liveserver-ssl/badge/?version=latest)](https://pytest-django-liveserver-ssl.readthedocs.io/en/latest/?badge=latest)\n\n[![ci](https://github.com/Apkawa/pytest-django-liveserver-ssl/actions/workflows/ci.yml/badge.svg)](https://github.com/Apkawa/pytest-django-liveserver-ssl/actions/workflows/ci.yml)\n[![Codecov](https://codecov.io/gh/Apkawa/pytest-django-liveserver-ssl/branch/master/graph/badge.svg)](https://codecov.io/gh/Apkawa/pytest-django-liveserver-ssl) </br>\n\n[![PyPi](https://img.shields.io/pypi/v/pytest-django-liveserver-ssl.svg)](https://pypi.python.org/pypi/pytest-django-liveserver-ssl)\n[![PyPi Python versions](https://img.shields.io/pypi/pyversions/pytest-django-liveserver-ssl.svg)](https://pypi.python.org/pypi/pytest-django-liveserver-ssl)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)</br>\n\n# pytest-django-liveserver-ssl\n\nAdd `live_server_ssl` fixture for pytest-django.\n\n# Installation\n\n```bash\npip install pytest-django-liveserver-ssl\n```\n\nor from git\n\n```bash\npip install -e git+https://githib.com/Apkawa/pytest-django-liveserver-ssl.git@master#egg=pytest-django-liveserver-ssl\n```\n\n# Usage\n\n```python\nimport requests\n\n\ndef test_live_server_connection(live_server_ssl):\n    assert live_server_ssl.remote_url.startswith(\"https://localhost:\")\n    assert live_server_ssl.url.startswith(\"http://0.0.0.0:\")\n\n    response = requests.get(live_server_ssl.remote_url, verify=False)\n    assert response.text == \"OK\"\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": null,
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/Apkawa/pytest-django-liveserver-ssl"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88af82bd70cd750296656551057a444f7905ede3329ebcdb6a407206551a24fa",
                "md5": "ab34462a9ee8314bb206904edc89de72",
                "sha256": "d7c6545038c2c5e107d75cb50e26735da614d240179210e9584ca5a10b5ac144"
            },
            "downloads": -1,
            "filename": "pytest_django_liveserver_ssl-0.0.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab34462a9ee8314bb206904edc89de72",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "<4,>=3.7",
            "size": 10289,
            "upload_time": "2025-01-09T16:17:27",
            "upload_time_iso_8601": "2025-01-09T16:17:27.776348Z",
            "url": "https://files.pythonhosted.org/packages/88/af/82bd70cd750296656551057a444f7905ede3329ebcdb6a407206551a24fa/pytest_django_liveserver_ssl-0.0.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7a1cd661efcf2aaec032f48994d7041cb03aecfb4ad1f73684d4d0f6ccd85de",
                "md5": "87baf314996a7c24e71c94c2f0fe7826",
                "sha256": "3b91a0abdba55b783fc4ba5a2c7e7df23c1c4717fb020c572cdbeba2e3d01683"
            },
            "downloads": -1,
            "filename": "pytest_django_liveserver_ssl-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "87baf314996a7c24e71c94c2f0fe7826",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.7",
            "size": 10597,
            "upload_time": "2025-01-09T16:17:30",
            "upload_time_iso_8601": "2025-01-09T16:17:30.004187Z",
            "url": "https://files.pythonhosted.org/packages/b7/a1/cd661efcf2aaec032f48994d7041cb03aecfb4ad1f73684d4d0f6ccd85de/pytest_django_liveserver_ssl-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-09 16:17:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Apkawa",
    "github_project": "pytest-django-liveserver-ssl",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-django-liveserver-ssl"
}
        
Elapsed time: 0.56212s