This release is a pre-release and may not be stable for production use.
==================
A simple backport/extraction of the Django 1.4a LiveServerTestCase. Use selenium, splinter, or other browser clients for advanced functional testing. Credit goes to the Django core developers and extracted code comes from https://gist.github.com/1685139.
Quick Start
-----------
First install using pip or setup.py:
`pip install django-liveserver`
Install selenium or another browser testing framework:
`pip install selenium`
Create your own test case. Here is an example:
```python
from django_liveserver.testcases import LiveServerTestCase
from selenium.webdriver.firefox.webdriver import WebDriver
class MySeleniumTests(LiveServerTestCase):
fixtures = ['test-data.json']
@classmethod
def setUpClass(cls):
cls.selenium = WebDriver()
super(MySeleniumTests, cls).setUpClass()
@classmethod
def tearDownClass(cls):
super(MySeleniumTests, cls).tearDownClass()
cls.selenium.quit()
def test_hello(self):
self.selenium.get(self.live_server_url)
self.assertIn("Hello World", self.selenium.title)
```
Notes
-----
Since this code extraction, the 1.4 code has changed and this version might not include some useful improvements.
Metadata
Release files for django-liveserver 0.1a-2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-liveserver-0.1a-2.tar.gz | 6.1 kB | Without provenance | Details for django-liveserver-0.1a-2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_liveserver-0.1a_2-py2.7.egg | Legacy Egg format | - | - | Details for django_liveserver-0.1a_2-py2.7.egg |
Total release size: 16.6 kB
Release files / django-liveserver-0.1a-2.tar.gz
| Download URL | django-liveserver-0.1a-2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b71c27659b32dbc9ac46530f7cf127a1b843255da6d58e190acd037dac14035
|
|
BLAKE2b-256 checksum How to use checksums |
d0ef5d19b19f39601eed72deefd865c6c257e1762c94d050e2e4db8f1c376f36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_liveserver-0.1a_2-py2.7.egg
| Download URL | django_liveserver-0.1a_2-py2.7.egg |
|---|---|
| Size | 10.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
bd711fe79070b1d035e6747cf6bfb62779910b7ae884f2f51721bceb72ec12f3
|
|
BLAKE2b-256 checksum How to use checksums |
be5daf03c51eb6f35140fa2708bcf4760f9fad799be3d2aaffe690e73f7d775a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-liveserver 0.1a-2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.