{ "info": { "author": "Alex Turbov", "author_email": "i.zaufi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Testing" ], "description": "What is this\n============\n\n|Build Status| |nbsp| |Latest Release|\n\nThis is a pytest plugin which provides a couple of fixtures to match\ntest output against patterns stored in files.\n\nThe plugin extends pytest with the following CLI options:\n\n- ``--pm-save-patterns`` -- to store the output to a pattern file (instead of checking);\n- ``--pm-patterns-base-dir`` to specify a base directory, where to lookup pattern files.\n\nPattern files are stored in a base directory and additional paths based on test module\nname, test class name and/or test function name as following:\n\n::\n\n //[test-class-name/]\n\nNote, that for non-class test functions the *test-class-name* part is absent.\n\n\nQuick Start\n===========\n\nThe plugin provides ``expected_out`` and ``expected_err``\nnamed fixture functions.\n\n\n.. code-block:: python\n\n def test_foo(capfd, expected_out):\n print('foo')\n\n stdout, stderr = capfd.readouterr()\n\n assert stdout == expected_out\n\nAdd ``pm-patterns-base-dir`` option to ``pytest.ini`` file (and ``pytest`` section)\npointing for example to ``test/data/expected``. For the first ``pytest`` run it would\nfail, cuz there is no expected pattern file present. To write it one can use\n``pytest`` CLI:\n\n::\n\n $ pytest --pm-save-patterns test/test_foo.py::test_foo\n\nReview the stored pattern file and add to your VCS.\n\n\nSee Also\n========\n\n* `How it works `_\n\n.. |Latest Release| image:: https://badge.fury.io/py/pytest-matcher.svg\n :target: https://pypi.org/project/pytest-matcher/#history\n.. |Build Status| image:: https://travis-ci.org/zaufi/pytest-matcher.svg?branch=master\n :target: https://travis-ci.org/zaufi/pytest-matcher\n.. |nbsp| unicode:: 0xA0\n :trim:\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/zaufi/pytest-matcher/archive/release/1.3.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://zaufi.github.io/programming/2017/07/05/extend-pytest-with-fixtures", "keywords": "pytest plugin", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "pytest-matcher", "package_url": "https://pypi.org/project/pytest-matcher/", "platform": "any", "project_url": "https://pypi.org/project/pytest-matcher/", "project_urls": { "Download": "https://github.com/zaufi/pytest-matcher/archive/release/1.3.3.tar.gz", "Homepage": "http://zaufi.github.io/programming/2017/07/05/extend-pytest-with-fixtures" }, "release_url": "https://pypi.org/project/pytest-matcher/1.3.3/", "requires_dist": null, "requires_python": "", "summary": "Match test output against patterns stored in files", "version": "1.3.3" }, "last_serial": 5456725, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "fecff51ede6204e26df18ce676c70372", "sha256": "2114bc2e193dcb4dc5cebb5e3b1f2910e83d7226f06b7d658b57ec968e4e7fd7" }, "downloads": -1, "filename": "pytest_matcher-0.9.0-py3.5.egg", "has_sig": false, "md5_digest": "fecff51ede6204e26df18ce676c70372", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 5961, "upload_time": "2017-08-13T04:09:09", "url": "https://files.pythonhosted.org/packages/5e/2b/f9e17b57a273ff4c544b12659546ce402e19ddb3348ed6ab4f2a608e3922/pytest_matcher-0.9.0-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "223775de2a326ca9f45a13e6604d4867", "sha256": "d5d941ff0168bc7d8c6f472f1b3ff9a0d0f76f09c537a2dd3b9ba4b707c1bbd2" }, "downloads": -1, "filename": "pytest-matcher-0.9.0.tar.gz", "has_sig": false, "md5_digest": "223775de2a326ca9f45a13e6604d4867", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16050, "upload_time": "2017-08-13T04:09:08", "url": "https://files.pythonhosted.org/packages/7b/a5/e6b72fba90c0ee4ed4d29e90288ce0f3d588eca684942bfda885086ac8eb/pytest-matcher-0.9.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "37da157a626f217cf57e2ddef8bc1e22", "sha256": "927e546ae324e31733f1865391c065dafc56696d783e500fe5f419f57b7a3903" }, "downloads": -1, "filename": "pytest_matcher-1.0.0-py3.5.egg", "has_sig": false, "md5_digest": "37da157a626f217cf57e2ddef8bc1e22", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 6656, "upload_time": "2017-08-25T08:09:10", "url": "https://files.pythonhosted.org/packages/f8/3b/88e42bb371e332be4bbc2386e0c84c60a5ef43137231ad5237b4b788c687/pytest_matcher-1.0.0-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "db09f9d4aa93d843742425ab8781f80a", "sha256": "f1cddd9ff45c7f4b94015fb621012ff79881577d7e3e63ffe9bcadc58c35b9ea" }, "downloads": -1, "filename": "pytest-matcher-1.0.0.tar.gz", "has_sig": false, "md5_digest": "db09f9d4aa93d843742425ab8781f80a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16459, "upload_time": "2017-08-25T08:09:09", "url": "https://files.pythonhosted.org/packages/98/39/2b1b16f21008a954baf60d1c7ce0c4ae90bcb62fb767ad036489afdd029c/pytest-matcher-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "c98ecd98778baaffc9e844f3083e93a3", "sha256": "54630509c4bdb46fd385ec467e36c85610f2c6a2d168071a1a19dc031a047878" }, "downloads": -1, "filename": "pytest_matcher-1.1.0-py3.6.egg", "has_sig": false, "md5_digest": "c98ecd98778baaffc9e844f3083e93a3", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 6919, "upload_time": "2018-03-28T07:16:10", "url": "https://files.pythonhosted.org/packages/5c/91/fd5362d88860a78a5fb9b4f5a6d475a333874011352f48e95df70f9f04d0/pytest_matcher-1.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "8a4a9b217b609fd31ef8117ae80a6512", "sha256": "e6a88404b19a1f5ec6dd5799e1a09c9086ecf982f07b1505edb486cf018c3221" }, "downloads": -1, "filename": "pytest-matcher-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8a4a9b217b609fd31ef8117ae80a6512", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17733, "upload_time": "2018-03-28T07:16:08", "url": "https://files.pythonhosted.org/packages/dc/40/d336c0855e7347f979c50486d9c211d0cd6ae0a0a28c632faf2ab7b3f985/pytest-matcher-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "a60824bfb7ae713c721f4ae252dddb3d", "sha256": "824ec8ab79084b89e7710e6258716bbd657d4545eb05201df2cd5da599ce3836" }, "downloads": -1, "filename": "pytest_matcher-1.2.0-py3.6.egg", "has_sig": false, "md5_digest": "a60824bfb7ae713c721f4ae252dddb3d", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 8699, "upload_time": "2018-03-29T22:07:12", "url": "https://files.pythonhosted.org/packages/95/6d/678cc9c1c4a6948b3aefab8111996f89ab49b56c46150a64622fa197f795/pytest_matcher-1.2.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "bf3f8c2b13311145418a623a002cd534", "sha256": "50746ebeb73fcaa471520a722c36e5b47090501a4ea72a9c7977ceb30508dcfa" }, "downloads": -1, "filename": "pytest-matcher-1.2.0.tar.gz", "has_sig": false, "md5_digest": "bf3f8c2b13311145418a623a002cd534", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19079, "upload_time": "2018-03-29T22:07:11", "url": "https://files.pythonhosted.org/packages/2a/0c/868d7ff31ad00cb93c5e04aec09f04d1fbf73fa4c17da2be7fa7fa309a25/pytest-matcher-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "e64ff0cf42538b6814aee4d066b3328b", "sha256": "a28a0436b8c6470d520585fee3431c40ca6d382fd08ccf4d9339a07add89b86f" }, "downloads": -1, "filename": "pytest_matcher-1.2.1-py3.6.egg", "has_sig": false, "md5_digest": "e64ff0cf42538b6814aee4d066b3328b", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 9624, "upload_time": "2018-03-29T22:35:15", "url": "https://files.pythonhosted.org/packages/51/cd/d75455a09231a8e0e1a061efd515db597e78ced513da8f59b3b8a9e47f8a/pytest_matcher-1.2.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "d96bab1e1ba450b8a8d283640d902961", "sha256": "f720bc5fbf2571a64ddb8bf4dfcccc7f7bef96315a76c4fd68cc9c5ca4f15449" }, "downloads": -1, "filename": "pytest-matcher-1.2.1.tar.gz", "has_sig": false, "md5_digest": "d96bab1e1ba450b8a8d283640d902961", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20325, "upload_time": "2018-03-29T22:35:13", "url": "https://files.pythonhosted.org/packages/99/29/3b92a435f154e9185136a03d881f0d19e6304664e8c0e527953aec8512ea/pytest-matcher-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "aff66c5350a2958d832659875f0c7805", "sha256": "293e9ae164bcaf48e771993afb0c794c2076dd30c39f2974c9b1ab5ff29582fc" }, "downloads": -1, "filename": "pytest_matcher-1.2.2-py3.6.egg", "has_sig": false, "md5_digest": "aff66c5350a2958d832659875f0c7805", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 9642, "upload_time": "2019-04-03T18:06:03", "url": "https://files.pythonhosted.org/packages/db/9a/1d3e584629f2bef53dbd62a100bd9117cdd96da0c10677830c02ccdbcb78/pytest_matcher-1.2.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "7785f380ffb29f3cbb808bfb3b77bb2d", "sha256": "668406c3f7b2f6c4056b24f3ee1af3fb551ed0176e57c60fa1f6055370f2fec4" }, "downloads": -1, "filename": "pytest-matcher-1.2.2.tar.gz", "has_sig": false, "md5_digest": "7785f380ffb29f3cbb808bfb3b77bb2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20393, "upload_time": "2019-04-03T18:06:00", "url": "https://files.pythonhosted.org/packages/80/8a/9816741a3352829910c7c934d730bf834e93962f57e095086cb36f1f82b2/pytest-matcher-1.2.2.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "92a210cb3608f042a8ef3d62d59f8b13", "sha256": "3ca43e1629a7bfb6385f507adc7027f64d055fc37e4dab40ff108f3533f3ff22" }, "downloads": -1, "filename": "pytest_matcher-1.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92a210cb3608f042a8ef3d62d59f8b13", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": "~=3.4", "size": 18784, "upload_time": "2019-04-04T11:57:39", "url": "https://files.pythonhosted.org/packages/26/bc/f426d0c9ff6af53162dec184c01c9d6a2a6fe4eabc9872835b18f7f2f702/pytest_matcher-1.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c35ebce1d66d199595c06541cef759b", "sha256": "6da4921e5d2f87938ae6a381f1e2161cb4c9f9c337107d9e95a61aa0a3d5a30c" }, "downloads": -1, "filename": "pytest-matcher-1.3.1.tar.gz", "has_sig": false, "md5_digest": "5c35ebce1d66d199595c06541cef759b", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 20547, "upload_time": "2019-04-04T11:57:41", "url": "https://files.pythonhosted.org/packages/52/cf/cca6219f01d68b46050c3a143259020b004878ae628ee546d39b9fed8055/pytest-matcher-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "9c7b54e505e12200bec1644c99a9e8c0", "sha256": "156d2ebb22266765bcaa0f0768a85936cbd71296e409c1976c966373ea5b165b" }, "downloads": -1, "filename": "pytest_matcher-1.3.2-py3.6.egg", "has_sig": false, "md5_digest": "9c7b54e505e12200bec1644c99a9e8c0", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 10490, "upload_time": "2019-06-26T14:42:29", "url": "https://files.pythonhosted.org/packages/b7/7c/e773b405e237e900f1c24074bbfb6d5aad0494d11c30e98677996af6a05c/pytest_matcher-1.3.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "1db28709dd793d326e4d225f9718d5ac", "sha256": "f2d3e1c4aaaced5f7074e57786999610b4bb2762e0ab63e04f7e7e70225dfa1f" }, "downloads": -1, "filename": "pytest-matcher-1.3.2.tar.gz", "has_sig": false, "md5_digest": "1db28709dd793d326e4d225f9718d5ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20680, "upload_time": "2019-06-26T14:42:26", "url": "https://files.pythonhosted.org/packages/76/44/8ec98dc3d3a98f60db611490b2348eaa800399f02db654185f91669ec48f/pytest-matcher-1.3.2.tar.gz" } ], "1.3.3": [ { "comment_text": "", "digests": { "md5": "4481a1bc9ea17bb3ddab39b505016de0", "sha256": "9d4f5c3d589a9248e131e09494b49f8c827616edbdd00ca27d8b74240c9b032b" }, "downloads": -1, "filename": "pytest_matcher-1.3.3-py3.6.egg", "has_sig": false, "md5_digest": "4481a1bc9ea17bb3ddab39b505016de0", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 10455, "upload_time": "2019-06-27T12:34:52", "url": "https://files.pythonhosted.org/packages/14/c5/967d13ad3f6f3282124a27281f93ded0f6dee0cdd6b2154ff87cb6257480/pytest_matcher-1.3.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "5e4c427cac539a453cbf26e1409b990e", "sha256": "72949503c0a094e7fb2e047a2d092d1ea1e29b468655ff02b20966e1b38a4858" }, "downloads": -1, "filename": "pytest-matcher-1.3.3.tar.gz", "has_sig": false, "md5_digest": "5e4c427cac539a453cbf26e1409b990e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20725, "upload_time": "2019-06-27T12:34:49", "url": "https://files.pythonhosted.org/packages/41/3f/7a8719056d3be017f139467b48e3b94bc6285a41809a0a6defcefc05f242/pytest-matcher-1.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4481a1bc9ea17bb3ddab39b505016de0", "sha256": "9d4f5c3d589a9248e131e09494b49f8c827616edbdd00ca27d8b74240c9b032b" }, "downloads": -1, "filename": "pytest_matcher-1.3.3-py3.6.egg", "has_sig": false, "md5_digest": "4481a1bc9ea17bb3ddab39b505016de0", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 10455, "upload_time": "2019-06-27T12:34:52", "url": "https://files.pythonhosted.org/packages/14/c5/967d13ad3f6f3282124a27281f93ded0f6dee0cdd6b2154ff87cb6257480/pytest_matcher-1.3.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "5e4c427cac539a453cbf26e1409b990e", "sha256": "72949503c0a094e7fb2e047a2d092d1ea1e29b468655ff02b20966e1b38a4858" }, "downloads": -1, "filename": "pytest-matcher-1.3.3.tar.gz", "has_sig": false, "md5_digest": "5e4c427cac539a453cbf26e1409b990e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20725, "upload_time": "2019-06-27T12:34:49", "url": "https://files.pythonhosted.org/packages/41/3f/7a8719056d3be017f139467b48e3b94bc6285a41809a0a6defcefc05f242/pytest-matcher-1.3.3.tar.gz" } ] }