{ "info": { "author": "Nikita Grishko", "author_email": "gr1n@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "bemo |Requirements Status| |Build Status| |Code Health| |PyPI| |Supported Python versions|\n==========================================================================================\n\nBemo(back-end mock) - it's simple way to mock your back-end from\nwebdriver UI tests.\n\nInstallation\n------------\n\nInstall ``bemo`` using `pip `__:\n\n::\n\n $ pip install bemo\n\n...or install ``bemo`` running command below if you want to use Python\n2.7:\n\n::\n\n $ pip install bemo[py2x]\n\nEnjoy!\n\nUsage\n-----\n\n::\n\n from selenium import webdriver\n from selene.conditions import text\n from selene.tools import set_driver, visit, s\n\n import bemo\n\n\n wd = webdriver.Firefox()\n set_driver(wd)\n\n visit('https://accounts.google.com/SignUp')\n\n with bemo.Session(wd=wd) as session:\n handler = session.handle('InputValidator', body={\n 'input01': {\n 'Valid': 'false',\n 'ErrorMessage': 'Error!',\n 'Errors': {\n 'GmailAddress': 'It work.',\n },\n 'ErrorData': [],\n },\n 'Locale': 'ru',\n })\n session.inject()\n\n s('#GmailAddress').set('John Snow')\n s('#submitbutton').click()\n\n s('#errormsg_0_GmailAddress').should_have(text('It work.'))\n\n handler.assert_called_once_with({\n 'method': 'POST',\n 'url': 'InputValidator?resource=SignUp',\n })\n\nTesting\n-------\n\nJust run ``tox`` to test package.\n\nLicense\n-------\n\n*bemo* is licensed under the MIT license. See the license file for\ndetails.\n\n.. |Requirements Status| image:: https://requires.io/github/bemo-project/bemo-python/requirements.svg?branch=master\n :target: https://requires.io/github/bemo-project/bemo-python/requirements/?branch=master\n.. |Build Status| image:: https://travis-ci.org/bemo-project/bemo-python.svg?branch=master\n :target: https://travis-ci.org/bemo-project/bemo-python\n.. |Code Health| image:: https://landscape.io/github/bemo-project/bemo-python/master/landscape.svg?style=flat\n :target: https://landscape.io/github/bemo-project/bemo-python/master\n.. |PyPI| image:: https://img.shields.io/pypi/v/bemo.svg\n :target: https://pypi.python.org/pypi/bemo\n.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/bemo.svg\n :target: https://pypi.python.org/pypi/bemo", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/bemo/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bemo-project/bemo-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bemo", "package_url": "https://pypi.org/project/bemo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bemo/", "project_urls": { "Download": "https://pypi.python.org/pypi/bemo/", "Homepage": "https://github.com/bemo-project/bemo-python" }, "release_url": "https://pypi.org/project/bemo/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "It's simple way to mock your back-end from webdriver UI tests", "version": "0.0.2" }, "last_serial": 2095722, "releases": { "0.0.0": [], "0.0.1": [ { "comment_text": "", "digests": { "md5": "d19e3c396ba1c3f86fee0f7e791b12da", "sha256": "af0a8ddd32e3b0622593e097c7b37ba4b5ed0c178162f4d718f7c6cdbb75cec5" }, "downloads": -1, "filename": "bemo-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d19e3c396ba1c3f86fee0f7e791b12da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6630, "upload_time": "2016-05-01T18:37:11", "url": "https://files.pythonhosted.org/packages/6a/ba/6b36e5b00ef320f4b868a93418e2aa085c0752d0e5f66759f5e8bbc0656b/bemo-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "cb0e3def34d98c3f46be195a62bab409", "sha256": "dafa25b69326c4c13bdaef2e908a4abece7d4e50e668a9a6a4a0e69b2b513380" }, "downloads": -1, "filename": "bemo-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cb0e3def34d98c3f46be195a62bab409", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2016-05-02T20:33:04", "url": "https://files.pythonhosted.org/packages/b8/5a/0f47064b14a896ac821600231f591278c43b6cbdfb156ae377d60ca51256/bemo-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb0e3def34d98c3f46be195a62bab409", "sha256": "dafa25b69326c4c13bdaef2e908a4abece7d4e50e668a9a6a4a0e69b2b513380" }, "downloads": -1, "filename": "bemo-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cb0e3def34d98c3f46be195a62bab409", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2016-05-02T20:33:04", "url": "https://files.pythonhosted.org/packages/b8/5a/0f47064b14a896ac821600231f591278c43b6cbdfb156ae377d60ca51256/bemo-0.0.2.tar.gz" } ] }