{ "info": { "author": "mshafer1", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Testing :: Unit" ], "description": "# webtest-flask-fixture\nProviding a fixture for static websites to use WebTest through Flask\n\n## Why WebTest?\n[WebTest](https://pypi.org/project/WebTest/) provides a great interface for testing websites including button/link and form interactions.\n\n## Why Flask?\n[Flask](https://pypi.org/project/Flask/) comes with an extremely light-weight dev server that can server up arbitrary pages (static or coded) relatively easily.\n\n## Let's put the two together!!\nAnd this package is born. The objective is to provide a `PyTest.fixture` that allows for quickly testing static web sites, or through customizing the template, a fixture that can be used to test more complex web sites.\n\n\n# Installation\n\n`pip install webtest-flask-fixture`\n\nor, from source:\n\n`pip install git+git://github.com/mshafer1/webtest-flask-fixture.git@0.5.1`\n\n\n# Useage\n\nStart writing a PyTest test, and use `webtest_flask_fixture.test_app` to load pages.\n\nExample:\n\n```python\nfrom webtest_flask_fixture import test_app\n\ndef test_can_load_test_index(test_app):\n # Act\n resp = test_app.get('/')\n\n # Assert\n assert resp.status_int == 200\n assert resp.content_type == 'text/html'\n assert 'Hello, World!' in resp # string must be present in body\n```\n\n\nMore examples in [examples](https://github.com/mshafer1/webtest-flask-fixture/tree/master/webtest_flask_fixture/examples/test_files).\n\n# Future\nCurrently WebTest does not execute JS in the page, we would like to also integrate selenium such that a user can apply our PyTest fixture and get a full experience.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mshafer1/webtest-flask-fixture", "keywords": "WebTest Flask PyTest static-sites", "license": "", "maintainer": "", "maintainer_email": "", "name": "webtest-flask-fixture", "package_url": "https://pypi.org/project/webtest-flask-fixture/", "platform": "", "project_url": "https://pypi.org/project/webtest-flask-fixture/", "project_urls": { "Bug Reports": "https://github.com/mshafer1/webtest-flask-fixture/issues", "Homepage": "https://github.com/mshafer1/webtest-flask-fixture", "Source": "https://github.com/mshafer1/webtest-flask-fixture" }, "release_url": "https://pypi.org/project/webtest-flask-fixture/0.5.1/", "requires_dist": [ "pytest", "webtest", "flask", "pytest-mock (>=1.10.4)", "pytest-cov ; extra == 'test'" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "summary": "Provide a pytest fixture of a Webtest app with a local static site via Flask", "version": "0.5.1" }, "last_serial": 5844725, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a45f575a604bfaf271fae89c0c15a5ef", "sha256": "2cd15fb63fe9bbc27360aec699ce2b74346f519db0c58cf42d49a0f544d876c8" }, "downloads": -1, "filename": "webtest_flask_fixture-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a45f575a604bfaf271fae89c0c15a5ef", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4614, "upload_time": "2019-09-13T03:36:32", "url": "https://files.pythonhosted.org/packages/85/d3/d2db7902544ccd37c7274a535c727e4ca13ff689cd4123942aa72edcc8de/webtest_flask_fixture-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a00aa6a7b83f9401844e59a0d15ab1f7", "sha256": "289b6a8b3807932141545c2f52a55fff5e376cb649dcb3d0f19637553378fa9c" }, "downloads": -1, "filename": "webtest_flask_fixture-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a00aa6a7b83f9401844e59a0d15ab1f7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4181, "upload_time": "2019-09-13T03:36:34", "url": "https://files.pythonhosted.org/packages/01/b2/a4fb0dec1252d8542d38ded2b839c6e312e82a781b75efc7b4c0ff35b2c6/webtest_flask_fixture-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7bcb58bbd6ae8efc839b5b76b134341d", "sha256": "61ab7e47a7fee406c65334cf273d06b5fa554af64214a18b7072ca955a3d2614" }, "downloads": -1, "filename": "webtest_flask_fixture-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7bcb58bbd6ae8efc839b5b76b134341d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4169, "upload_time": "2019-09-13T04:22:37", "url": "https://files.pythonhosted.org/packages/1d/b8/1a4cecedaa540cdb2667a7710c53363b9ad2bc22e35e8e094e8c7a857324/webtest_flask_fixture-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "118f1e610e6ca2d43dbde138a773ed13", "sha256": "521974806ff605d1ed7b8a3d0915e52d78c1548b79d159085b7ef4f18fcd87eb" }, "downloads": -1, "filename": "webtest_flask_fixture-0.1.1.tar.gz", "has_sig": false, "md5_digest": "118f1e610e6ca2d43dbde138a773ed13", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4173, "upload_time": "2019-09-13T04:22:38", "url": "https://files.pythonhosted.org/packages/fe/c2/390d400175f577c1c10ecb8c0e027c1f9693d909494432d155782657434d/webtest_flask_fixture-0.1.1.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "9355ffd9f1e6acf68b1e925b14872d5f", "sha256": "48b40b78b7332c2351be533cdaf08e88a099d2188c2ecc9fccd92b239266ef1e" }, "downloads": -1, "filename": "webtest_flask_fixture-0.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9355ffd9f1e6acf68b1e925b14872d5f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4635, "upload_time": "2019-09-18T00:19:13", "url": "https://files.pythonhosted.org/packages/e4/c3/da5809a0d0c8527a6b233fc832df8d5c97c97dce44b2206e15c1b4dd8a92/webtest_flask_fixture-0.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0bb5259acb38faaf68d7cae8ae4b24aa", "sha256": "0579dc94ad43447fc7d3ccf4c3dd33cbdfaf1c3bd929eda90949abd5be78dab5" }, "downloads": -1, "filename": "webtest_flask_fixture-0.5.1.tar.gz", "has_sig": false, "md5_digest": "0bb5259acb38faaf68d7cae8ae4b24aa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4388, "upload_time": "2019-09-18T00:19:15", "url": "https://files.pythonhosted.org/packages/83/6a/3d4c9cc5bea287cc93f8a8f22e61f4e6380018769575f5c493a5d2fa4119/webtest_flask_fixture-0.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9355ffd9f1e6acf68b1e925b14872d5f", "sha256": "48b40b78b7332c2351be533cdaf08e88a099d2188c2ecc9fccd92b239266ef1e" }, "downloads": -1, "filename": "webtest_flask_fixture-0.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9355ffd9f1e6acf68b1e925b14872d5f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4635, "upload_time": "2019-09-18T00:19:13", "url": "https://files.pythonhosted.org/packages/e4/c3/da5809a0d0c8527a6b233fc832df8d5c97c97dce44b2206e15c1b4dd8a92/webtest_flask_fixture-0.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0bb5259acb38faaf68d7cae8ae4b24aa", "sha256": "0579dc94ad43447fc7d3ccf4c3dd33cbdfaf1c3bd929eda90949abd5be78dab5" }, "downloads": -1, "filename": "webtest_flask_fixture-0.5.1.tar.gz", "has_sig": false, "md5_digest": "0bb5259acb38faaf68d7cae8ae4b24aa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", "size": 4388, "upload_time": "2019-09-18T00:19:15", "url": "https://files.pythonhosted.org/packages/83/6a/3d4c9cc5bea287cc93f8a8f22e61f4e6380018769575f5c493a5d2fa4119/webtest_flask_fixture-0.5.1.tar.gz" } ] }