django-selenosis


Namedjango-selenosis JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/theatlantic/django-selenosis
SummaryHelpers for writing selenium tests for Django
upload_time2024-07-11 16:15:55
maintainerFrankie Dintino
docs_urlNone
authorFrankie Dintino
requires_pythonNone
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ================
django-selenosis
================

**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``:

1. homebrew::

    brew install --cask chromedriver

2. 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.


.. _django-nested-admin: https://github.com/theatlantic/django-nested-admin
.. _runtests.py: https://github.com/theatlantic/django-selenosis/blob/master/runtests.py
.. _selenosis/tests/test.py: https://github.com/theatlantic/django-selenosis/blob/master/selenosis/tests/test.py

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/theatlantic/django-selenosis",
    "name": "django-selenosis",
    "maintainer": "Frankie Dintino",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "fdintino@theatlantic.com",
    "keywords": null,
    "author": "Frankie Dintino",
    "author_email": "fdintino@theatlantic.com",
    "download_url": "https://files.pythonhosted.org/packages/69/2e/50603234bcb4661246158e1751a2e1b555e45b4a7b1178647c8893fbb372/django-selenosis-2.1.0.tar.gz",
    "platform": null,
    "description": "================\ndjango-selenosis\n================\n\n**selenosis** *noun* sel\u00b7e\u00b7no\u00b7sis /s\u025bli\u02d0\u02c8n\u0259\u028as\u026as/. **poisoning due to excessive intake of selenium.**\n\ndjango-selenosis (formerly django-admin-testutils) contains helpers to make\nwriting selenium unit tests for Django, and in particular the Django admin,\neasier. It is based on the code that supported selenium unit tests in\n`django-nested-admin`_.\n\nThe test runner is designed to work similarly to the Django framework\u2019s own\nruntests.py. The best guide on usage can be found in the unit tests for this\nrepository. Specifically, look at `runtests.py`_ and `selenosis/tests/test.py`_.\n\nDevelopment and Testing\n=======================\n\nInstall ``chromedriver``\n------------------------\n\nYou can use homebrew or manually download ``chomedriver``:\n\n1. homebrew::\n\n    brew install --cask chromedriver\n\n2. Manually::\n\n    export PATH=\"$PWD:$PATH\"\n    export CHROMEDRIVER_VERSION=$(curl -q http://chromedriver.storage.googleapis.com/LATEST_RELEASE)\n    curl -O http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_mac64.zip\n    unzip chromedriver_mac64.zip\n    rm chromedriver_mac64.zip\n    chmod +x chromedriver\n\nRun ``tox`` To Test\n-------------------\n\nRun all tests::\n\n    tox -- --selenium=chrome-headless\n\nRun only a specified test environment::\n\n    tox -e py37-dj22 -- --selenium=chrome-headless\n\nIf you would like to observe the browser during a test run, simply remove ``-headless``\nin the above examples.\n\n\n.. _django-nested-admin: https://github.com/theatlantic/django-nested-admin\n.. _runtests.py: https://github.com/theatlantic/django-selenosis/blob/master/runtests.py\n.. _selenosis/tests/test.py: https://github.com/theatlantic/django-selenosis/blob/master/selenosis/tests/test.py\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Helpers for writing selenium tests for Django",
    "version": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/theatlantic/django-selenosis"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0f658de6c637d2807e645719b63b01a9020e92d33ec98e2c1c521d26275ad16",
                "md5": "c527a6558879acfb10de7c72af0c1031",
                "sha256": "07d8cad70cbd9b365a22573a7c9f72dfe87453124d6377b387ee3090be8bcbb5"
            },
            "downloads": -1,
            "filename": "django_selenosis-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c527a6558879acfb10de7c72af0c1031",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 17993,
            "upload_time": "2024-07-11T16:15:53",
            "upload_time_iso_8601": "2024-07-11T16:15:53.775973Z",
            "url": "https://files.pythonhosted.org/packages/d0/f6/58de6c637d2807e645719b63b01a9020e92d33ec98e2c1c521d26275ad16/django_selenosis-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "692e50603234bcb4661246158e1751a2e1b555e45b4a7b1178647c8893fbb372",
                "md5": "aa260008ebad0facf6b0b7a8585cf771",
                "sha256": "abbcc7e46ceb35f8321dec516142085cc8748df7e2deff5e76e7f0715a8b8181"
            },
            "downloads": -1,
            "filename": "django-selenosis-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "aa260008ebad0facf6b0b7a8585cf771",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 16381,
            "upload_time": "2024-07-11T16:15:55",
            "upload_time_iso_8601": "2024-07-11T16:15:55.758082Z",
            "url": "https://files.pythonhosted.org/packages/69/2e/50603234bcb4661246158e1751a2e1b555e45b4a7b1178647c8893fbb372/django-selenosis-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-11 16:15:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "theatlantic",
    "github_project": "django-selenosis",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "django-selenosis"
}
        
Elapsed time: 0.51294s