https://github.com/apkawa/pytest-django-liveserver-ssl
Extends pytest-django live_server fixture for add ssl feature
https://github.com/apkawa/pytest-django-liveserver-ssl
Last synced: about 1 year ago
JSON representation
Extends pytest-django live_server fixture for add ssl feature
- Host: GitHub
- URL: https://github.com/apkawa/pytest-django-liveserver-ssl
- Owner: Apkawa
- License: mit
- Created: 2021-07-29T09:32:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-09T16:12:31.000Z (over 1 year ago)
- Last Synced: 2025-04-14T06:39:16.469Z (over 1 year ago)
- Language: Python
- Size: 60.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pytest-django-liveserver-ssl.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/Apkawa/pytest-django-liveserver-ssl/actions/workflows/ci.yml)
[](https://codecov.io/gh/Apkawa/pytest-django-liveserver-ssl)
[](https://pypi.python.org/pypi/pytest-django-liveserver-ssl)
[](https://pypi.python.org/pypi/pytest-django-liveserver-ssl)
[](LICENSE)
# 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"
```