{ "info": { "author": "Dave Hunt", "author_email": "dhunt@mozilla.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "pytest-fxa\n==========\n\npytest-fxa is a plugin for pytest_ that provides test accounts for\n`Firefox Accounts`_.\n\n.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg\n :target: https://github.com/mozilla/pytest-fxa/blob/master/LICENSE\n :alt: License\n.. image:: https://img.shields.io/pypi/v/pytest-fxa.svg\n :target: https://pypi.python.org/pypi/pytest-fxa/\n :alt: PyPI\n.. image:: https://img.shields.io/travis/mozilla/pytest-fxa.svg\n :target: https://travis-ci.org/mozilla/pytest-fxa/\n :alt: Travis\n.. image:: https://img.shields.io/github/issues-raw/mozilla/pytest-fxa.svg\n :target: https://github.com/mozilla/pytest-fxa/issues\n :alt: Issues\n.. image:: https://pyup.io/repos/github/mozilla/pytest-fxa/shield.svg\n :target: https://pyup.io/repos/github/mozilla/pytest-fxa\n :alt: Updates\n.. image:: https://pyup.io/repos/github/mozilla/pytest-fxa/python-3-shield.svg\n :target: https://pyup.io/repos/github/mozilla/pytest-fxa/\n :alt: Python 3\n\nRequirements\n------------\n\nYou will need the following prerequisites in order to use pytest-fxa:\n\n- Python 2.7, 3.6, PyPy, or PyPy3\n\nInstallation\n------------\n\nTo install pytest-fxa:\n\n.. code-block:: bash\n\n $ pip install pytest-fxa\n\nCreating a test Firefox Account\n-------------------------------\n\nTo create a Firefox Account for testing, include the ``fxa_account`` fixture\nname in your test method signature. This is a tuple with named properties for\nthe test account's ``email`` and ``password``. The following example shows how\nthis could be used with `Selenium`_ to sign into a website that uses Firefox\nAccounts for authentication:\n\n.. code-block:: python\n\n def test_my_fxa_site(fxa_account, selenium):\n selenium.get('https://example.com/')\n selenium.find_element(By.ID, 'email').send_keys(fxa_account.email)\n selenium.find_element(By.ID, 'password').send_keys(fxa_account.password)\n selenium.find_element(By.ID, 'login').click()\n\nThe test account will be automatically destroyed when it's no longer needed.\n\nSpecifying an environment\n-------------------------\n\nBy default all accounts will be created on the 'stage' environment. You can set\nthe ``FXA_ENV`` environment variable to target 'production' or 'stable'.\n\nIf you need to override the environment for a subset of tests, or run tests against multiple environments, you can use the ``fxa_env`` marker:\n\n.. code-block:: python\n\n @pytest.mark.fxa_env('production')\n def test_production(fxa_account):\n selenium.get('https://example.com/')\n selenium.find_element(By.ID, 'email').send_keys(fxa_account.email)\n selenium.find_element(By.ID, 'password').send_keys(fxa_account.password)\n selenium.find_element(By.ID, 'login').click()\n\n\n @pytest.mark.fxa_env('stage', 'stable')\n def test_stage(fxa_account):\n selenium.get('https://elpmaxe.com/')\n selenium.find_element(By.ID, 'email').send_keys(fxa_account.email)\n selenium.find_element(By.ID, 'password').send_keys(fxa_account.password)\n selenium.find_element(By.ID, 'login').click()\n\nAlternatively, you can override the ``fxa_urls`` fixture for full control of\nthe URLs for your environment:\n\n.. code-block:: python\n\n @pytest.fixture\n def fxa_urls():\n return {\n 'authentication': 'https://api-accounts.stage.mozaws.net/v1',\n 'oauth': 'https://oauth.stage.mozaws.net/v1',\n 'content': 'https://accounts.stage.mozaws.net/',\n 'profile': 'https://profile.stage.mozaws.net/v1',\n 'token': 'https://token.stage.mozaws.net/'}\n\nResources\n---------\n\n- `Release Notes`_\n- `Issue Tracker`_\n- Code_\n\n.. _pytest: http://www.python.org/\n.. _Firefox Accounts: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Firefox_Accounts\n.. _Selenium: https://www.seleniumhq.org/\n.. _Release Notes: http://github.com/mozilla/pytest-fxa/blob/master/CHANGES.rst\n.. _Issue Tracker: http://github.com/mozilla/pytest-fxa/issues\n.. _Code: http://github.com/mozilla/pytest-fxa\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/davehunt/pytest-fxa", "keywords": "py.test pytest mozilla automation firefox account fxa", "license": "Mozilla Public License 2.0 (MPL 2.0)", "maintainer": "", "maintainer_email": "", "name": "pytest-fxa", "package_url": "https://pypi.org/project/pytest-fxa/", "platform": "", "project_url": "https://pypi.org/project/pytest-fxa/", "project_urls": { "Homepage": "https://github.com/davehunt/pytest-fxa" }, "release_url": "https://pypi.org/project/pytest-fxa/1.4.0/", "requires_dist": [ "PyFxA" ], "requires_python": "", "summary": "pytest plugin for Firefox Accounts", "version": "1.4.0" }, "last_serial": 4215908, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1239d717f7bc8cf90a876c87ea46b3ef", "sha256": "f2b0c5e45b0e20aee55d370b1f3544d545fede1d4fcfb633717f544a065f26a8" }, "downloads": -1, "filename": "pytest_fxa-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1239d717f7bc8cf90a876c87ea46b3ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3863, "upload_time": "2018-04-12T17:07:48", "url": "https://files.pythonhosted.org/packages/88/53/c936f8d1496b510c15a190bb5d11913003c09a95fb6be7d6a8a919f79293/pytest_fxa-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6277727b073236f3baeef610af9cb9ed", "sha256": "2cf146d6d04aadc2d1ac58bf10102942b41e39186422376933e4cd1f86dc3388" }, "downloads": -1, "filename": "pytest-fxa-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6277727b073236f3baeef610af9cb9ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5125, "upload_time": "2018-04-12T17:07:49", "url": "https://files.pythonhosted.org/packages/a4/17/4ad1b5de0086756e43c18bd2d0d8b8c752dd2acb3158c550b93e8db8dc27/pytest-fxa-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "73ca2a8e0d0a3b629e5de77008de6f90", "sha256": "431dc7bbcf14a08b2f6fd2891aa06608925080840f36f36e0214d57b527a7bc3" }, "downloads": -1, "filename": "pytest_fxa-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73ca2a8e0d0a3b629e5de77008de6f90", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4062, "upload_time": "2018-05-21T19:52:19", "url": "https://files.pythonhosted.org/packages/b7/33/d80d8ae745ff8e4f4c42ee0eb07956dfc2ad50ad744f30db9dffe7425b7e/pytest_fxa-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6b72cd5df628012d2e139c1c89538d9", "sha256": "3fb5133f03a9cb0418bbb805189b2fee8bc05750ce6b13dfa5b8e140f54c802b" }, "downloads": -1, "filename": "pytest-fxa-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b6b72cd5df628012d2e139c1c89538d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6086, "upload_time": "2018-05-21T19:52:19", "url": "https://files.pythonhosted.org/packages/28/ba/ad5d35c54644e261d745d29eb6dac82ba915df46d4a18a7df8b2a1f07977/pytest-fxa-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "38e0b42e9edf6b3a6e268a6dda67da94", "sha256": "8bbd155ca01871b54b8cca5f780af7dc5961a17196a186dbe33a46e713140d77" }, "downloads": -1, "filename": "pytest_fxa-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "38e0b42e9edf6b3a6e268a6dda67da94", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4209, "upload_time": "2018-06-15T20:47:05", "url": "https://files.pythonhosted.org/packages/81/ac/9536f3e0923a694a6cac48e99b9192058d5fc6105eb13ac688bedb59db69/pytest_fxa-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a858b762bd5c0b91344524cd1f5607cd", "sha256": "9a58846b0a4bc76b6318d9f35477a3e5e2a51383a30e02fe7d84142678508995" }, "downloads": -1, "filename": "pytest-fxa-1.2.0.tar.gz", "has_sig": false, "md5_digest": "a858b762bd5c0b91344524cd1f5607cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6285, "upload_time": "2018-06-15T20:47:07", "url": "https://files.pythonhosted.org/packages/79/6c/a72e35d762e993cadbab232f544953483222528ea4d3408c8827abe1dee9/pytest-fxa-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "8537933c38027b0d5100fec8f5d2877c", "sha256": "8aa5aca97750ac714300a5013b3a9ddb858eb15b205e4d1d3dfce2746706e4ea" }, "downloads": -1, "filename": "pytest_fxa-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8537933c38027b0d5100fec8f5d2877c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4545, "upload_time": "2018-06-26T14:59:01", "url": "https://files.pythonhosted.org/packages/e8/19/c0af25358985bb0824df5198938c04407339999281da426440f4f29e1fab/pytest_fxa-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b5d85d4fe59700fbf163ffd7bb539210", "sha256": "9753faca995135ecae4330a7961e918684f16482afc4eede4bd8a8a8295ac29f" }, "downloads": -1, "filename": "pytest-fxa-1.3.0.tar.gz", "has_sig": false, "md5_digest": "b5d85d4fe59700fbf163ffd7bb539210", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6861, "upload_time": "2018-06-26T14:59:02", "url": "https://files.pythonhosted.org/packages/b0/a6/783098d437a29aad643f34a79aa2a9593a4f34cfaed62cbdee62ef73afd4/pytest-fxa-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "6781ac1f5426dd82cbda3cfeb6f43a3c", "sha256": "778dfdb019f1e0af8744704fe5f7ac5c08fd5d45ff054023b0a18d5f99d737f1" }, "downloads": -1, "filename": "pytest_fxa-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6781ac1f5426dd82cbda3cfeb6f43a3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4633, "upload_time": "2018-08-28T17:13:58", "url": "https://files.pythonhosted.org/packages/7f/39/fc1d84052e94075786fb72302a4b1f8a83b160f8d0025a55ce242803f68d/pytest_fxa-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87962676552dc583f8dee99841a910db", "sha256": "b75967e74e9b2f3ffa5558421fdf61c7fff5948fc9d7e357e7147c682988ecc1" }, "downloads": -1, "filename": "pytest-fxa-1.4.0.tar.gz", "has_sig": false, "md5_digest": "87962676552dc583f8dee99841a910db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7075, "upload_time": "2018-08-28T17:14:00", "url": "https://files.pythonhosted.org/packages/47/95/9d8dd8759e7e202455312d4c70ea5f9bd8e2bb2466c75f37889123c58b59/pytest-fxa-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6781ac1f5426dd82cbda3cfeb6f43a3c", "sha256": "778dfdb019f1e0af8744704fe5f7ac5c08fd5d45ff054023b0a18d5f99d737f1" }, "downloads": -1, "filename": "pytest_fxa-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6781ac1f5426dd82cbda3cfeb6f43a3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4633, "upload_time": "2018-08-28T17:13:58", "url": "https://files.pythonhosted.org/packages/7f/39/fc1d84052e94075786fb72302a4b1f8a83b160f8d0025a55ce242803f68d/pytest_fxa-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87962676552dc583f8dee99841a910db", "sha256": "b75967e74e9b2f3ffa5558421fdf61c7fff5948fc9d7e357e7147c682988ecc1" }, "downloads": -1, "filename": "pytest-fxa-1.4.0.tar.gz", "has_sig": false, "md5_digest": "87962676552dc583f8dee99841a910db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7075, "upload_time": "2018-08-28T17:14:00", "url": "https://files.pythonhosted.org/packages/47/95/9d8dd8759e7e202455312d4c70ea5f9bd8e2bb2466c75f37889123c58b59/pytest-fxa-1.4.0.tar.gz" } ] }