flea


Nameflea JSON
Version 9.1.1 PyPI version JSON
download
home_pagehttps://ollycope.com/software/flea/latest/
SummaryFunctional testing for WSGI: drive WSGI apps from your test suite
upload_time2023-07-13 11:11:09
maintainer
docs_urlhttps://pythonhosted.org/flea/
authorOliver Cope
requires_python
licenseApache
keywords wsgi tests testing pytest nose
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Flea - WSGI testing
===================

Flea helps you write functional tests for WSGI applications.

Flea uses CSS selectors and XPath to give you a powerful tool to
drive and test the output of your WSGI web applications.
Here's an example of how easy it is to test a WSGI application::

	>>> from flea import Agent
	>>> r = Agent(my_wsgi_app).get('/')
	>>> print r.body
	<html>
		<body>
			<a href="/sign-in">sign in</a>
		</body>
	</html>
	>>> r = r.click('sign in')
	>>> r = r("form#login-form").fill(
	... 	username = 'root',
	... 	password = 'secret',
	... ).submit()
	>>> assert 'login successful' in r.body


            

Raw data

            {
    "_id": null,
    "home_page": "https://ollycope.com/software/flea/latest/",
    "name": "flea",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/flea/",
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wsgi,tests,testing,pytest,nose",
    "author": "Oliver Cope",
    "author_email": "oliver@redgecko.org",
    "download_url": "https://files.pythonhosted.org/packages/3f/f6/45854ac75dc9eb0e05bb6955b5c7ef8feec546a1aa80f49fe97bbf946c4b/flea-9.1.1.tar.gz",
    "platform": null,
    "description": "Flea - WSGI testing\n===================\n\nFlea helps you write functional tests for WSGI applications.\n\nFlea uses CSS selectors and XPath to give you a powerful tool to\ndrive and test the output of your WSGI web applications.\nHere's an example of how easy it is to test a WSGI application::\n\n\t>>> from flea import Agent\n\t>>> r = Agent(my_wsgi_app).get('/')\n\t>>> print r.body\n\t<html>\n\t\t<body>\n\t\t\t<a href=\"/sign-in\">sign in</a>\n\t\t</body>\n\t</html>\n\t>>> r = r.click('sign in')\n\t>>> r = r(\"form#login-form\").fill(\n\t... \tusername = 'root',\n\t... \tpassword = 'secret',\n\t... ).submit()\n\t>>> assert 'login successful' in r.body\n\n",
    "bugtrack_url": null,
    "license": "Apache",
    "summary": "Functional testing for WSGI: drive WSGI apps from your test suite",
    "version": "9.1.1",
    "project_urls": {
        "Homepage": "https://ollycope.com/software/flea/latest/"
    },
    "split_keywords": [
        "wsgi",
        "tests",
        "testing",
        "pytest",
        "nose"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cad8f77442a230f49a9f8320f5d48d0cf4ede033036a1ccf64cf20ac4298bde7",
                "md5": "62cb89b90361832bd8ba4944b81a9ae3",
                "sha256": "e6dc395931db6119d65936a737ba61ee5ca3eb7a8f3b535cca7e1024e6cd58f7"
            },
            "downloads": -1,
            "filename": "flea-9.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "62cb89b90361832bd8ba4944b81a9ae3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 27337,
            "upload_time": "2023-07-13T11:11:07",
            "upload_time_iso_8601": "2023-07-13T11:11:07.286737Z",
            "url": "https://files.pythonhosted.org/packages/ca/d8/f77442a230f49a9f8320f5d48d0cf4ede033036a1ccf64cf20ac4298bde7/flea-9.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ff645854ac75dc9eb0e05bb6955b5c7ef8feec546a1aa80f49fe97bbf946c4b",
                "md5": "f1d8345764b1a7778a26af2dde2be8b3",
                "sha256": "feeb425b600ea33d654f7935f484712802871366c3495cf25aefe160558a6691"
            },
            "downloads": -1,
            "filename": "flea-9.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f1d8345764b1a7778a26af2dde2be8b3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 35127,
            "upload_time": "2023-07-13T11:11:09",
            "upload_time_iso_8601": "2023-07-13T11:11:09.207523Z",
            "url": "https://files.pythonhosted.org/packages/3f/f6/45854ac75dc9eb0e05bb6955b5c7ef8feec546a1aa80f49fe97bbf946c4b/flea-9.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-13 11:11:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "flea"
}
        
Elapsed time: 0.14346s