Django Selenosis 2.1.1 | Coderz Repository

django-selenosis 2.1.1

Last updated:

0 purchases

django-selenosis 2.1.1 Image
django-selenosis 2.1.1 Images

Free

Languages

Categories

Add to Cart

Description:

djangoselenosis 2.1.1

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.