{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "pytest-mark-no-py3\n==================\n\nThis package provides a pytest plugin and a [Bowler](https://pybowler.io/)\ncodemod to help migrate tests to Python 3.\n\nAny tests marked with `@pytest.mark.no_py3` will be expected to fail when\nrunning on Python 3 and will fail the test if they pass unexpectedly.\n\nUsage\n-----\n\n### Adding `@pytest.mark.no_py3`\n\n1. Install this package in your test dependencies.\n\n2. Run your tests on Python 3, savings the results with pytest's `--result-log`\n option, e.g.:\n\n ```sh\n tox -e py37 -- --result-log=test-results.txt\n ```\n\n3. Install this package with the `bowler` extras in a Python 3 virtualenv:\n\n ```sh\n pip install pytest_mark_no_py3[bowler]\n ```\n\n4. Apply the marker to all of the tests that failed on Python 3, running from\n the same directory that you ran the tests from:\n\n ```sh\n python -m pytest_mark_no_py3.add --result-log=path/to/result-log.txt path/to/your/tests\n ```\n\n If you're feeling confident, you can also use the `--no-interactive` option\n to apply the codemod without prompting to accept changes.\n\n### Removing `@pytest.mark.no_py3`\n\n1. Fix some code so that tests start passing on Python 3, violating the xfail.\n\n2. Run your tests on Python 3, savings the results with pytest's `--result-log`\n option, e.g.:\n\n ```sh\n tox -e py37 -- --result-log=test-results.txt\n ```\n\n **Warning:** The only failing tests should be the tests that you fixed and\n want the marker removed from!\n\n3. Install this package with the `bowler` extras in a Python 3 virtualenv:\n\n ```sh\n pip install pytest_mark_no_py3[bowler]\n ```\n\n4. Remove the marker from all of the tests that \"failed\" (i.e. were expected to\n fail but actually passed) on Python 3, running from the same directory that\n you ran the tests from:\n\n ```sh\n python -m pytest_mark_no_py3.remove --result-log=path/to/result-log.txt path/to/your/tests\n ```\n\n If you're feeling confident, you can also use the `--no-interactive` option\n to apply the codemod without prompting to accept changes.\n\nRunning tests\n-------------\n\nRun `tox`.\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/GoodRx/pytest-mark-no-py3", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pytest-mark-no-py3", "package_url": "https://pypi.org/project/pytest-mark-no-py3/", "platform": "", "project_url": "https://pypi.org/project/pytest-mark-no-py3/", "project_urls": { "Homepage": "https://github.com/GoodRx/pytest-mark-no-py3" }, "release_url": "https://pypi.org/project/pytest-mark-no-py3/0.1.0/", "requires_dist": [ "pytest", "bowler ; extra == 'bowler'", "click ; extra == 'bowler'", "attrs ; extra == 'bowler'" ], "requires_python": "", "summary": "pytest plugin and bowler codemod to help migrate tests to Python 3", "version": "0.1.0" }, "last_serial": 5283090, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ece28d64cba7fdf9e053b4f37a0ee701", "sha256": "fd0a68bc478f04f99d9080d4459439389f11809f6f6a472647d161443b57e2fd" }, "downloads": -1, "filename": "pytest_mark_no_py3-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ece28d64cba7fdf9e053b4f37a0ee701", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6422, "upload_time": "2019-05-17T16:33:30", "url": "https://files.pythonhosted.org/packages/01/6c/e44dd96db1d45c7b6511b0a097d707259798df536bae223c842a54545644/pytest_mark_no_py3-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c1b472329526625c6f2eba909212b5c6", "sha256": "f32931c2316f5b8a1eda33c54f31e824da01ff3f733c3010e2b5e9190412402d" }, "downloads": -1, "filename": "pytest-mark-no-py3-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c1b472329526625c6f2eba909212b5c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6274, "upload_time": "2019-05-17T16:33:32", "url": "https://files.pythonhosted.org/packages/c7/14/a48c0a66ddd4abe441a0cd8f4768da21c3e309a5a2782b74873c33836580/pytest-mark-no-py3-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ece28d64cba7fdf9e053b4f37a0ee701", "sha256": "fd0a68bc478f04f99d9080d4459439389f11809f6f6a472647d161443b57e2fd" }, "downloads": -1, "filename": "pytest_mark_no_py3-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ece28d64cba7fdf9e053b4f37a0ee701", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6422, "upload_time": "2019-05-17T16:33:30", "url": "https://files.pythonhosted.org/packages/01/6c/e44dd96db1d45c7b6511b0a097d707259798df536bae223c842a54545644/pytest_mark_no_py3-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c1b472329526625c6f2eba909212b5c6", "sha256": "f32931c2316f5b8a1eda33c54f31e824da01ff3f733c3010e2b5e9190412402d" }, "downloads": -1, "filename": "pytest-mark-no-py3-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c1b472329526625c6f2eba909212b5c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6274, "upload_time": "2019-05-17T16:33:32", "url": "https://files.pythonhosted.org/packages/c7/14/a48c0a66ddd4abe441a0cd8f4768da21c3e309a5a2782b74873c33836580/pytest-mark-no-py3-0.1.0.tar.gz" } ] }