selenosis noun sel·e·no·sis /sɛliːˈnəʊsɪs/. poisoning due to excessive intake of selenium.
django-selenosis (formerly django-admin-testutils) contains helpers to make writing selenium unit tests for Django, and in particular the Django admin, easier. It is based on the code that supported selenium unit tests in django-nested-admin.
The test runner is designed to work similarly to the Django framework’s own runtests.py. The best guide on usage can be found in the unit tests for this repository. Specifically, look at runtests.py and selenosis/tests/test.py.
Development and Testing
Install chromedriver
You can use homebrew or manually download chomedriver:
homebrew:
brew install --cask chromedriver
Manually:
export PATH="$PWD:$PATH" export CHROMEDRIVER_VERSION=$(curl -q http://chromedriver.storage.googleapis.com/LATEST_RELEASE) curl -O http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_mac64.zip unzip chromedriver_mac64.zip rm chromedriver_mac64.zip chmod +x chromedriver
Run tox To Test
Run all tests:
tox -- --selenium=chrome-headless
Run only a specified test environment:
tox -e py37-dj22 -- --selenium=chrome-headless
If you would like to observe the browser during a test run, simply remove -headless in the above examples.
Metadata
Release files for django-selenosis 2.1.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_selenosis-2.1.2.tar.gz | 16.7 kB | Without provenance | Details for django_selenosis-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_selenosis-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for django_selenosis-2.1.2-py3-none-any.whl |
Total release size: 35.0 kB
Release files / django_selenosis-2.1.2.tar.gz
| Download URL | django_selenosis-2.1.2.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c49b014877107ec93a89f94191791ef34187b10b54dd4146161166725d280d5
|
|
BLAKE2b-256 checksum How to use checksums |
19dd33ae3e6c8a163f447d090b61c481aa7c9e914a17d9d161b69094cadf1c11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Release files / django_selenosis-2.1.2-py3-none-any.whl
| Download URL | django_selenosis-2.1.2-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e251ffca1d2975bb979a4a37d03f7421abb5f97899e2a718cc5754738d8f9442
|
|
BLAKE2b-256 checksum How to use checksums |
73d511c23de1853702f672907ead24b228040d6ffada26c2818af5d3666d9133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Security for django-selenosis 2.1.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.