{ "info": { "author": "Semyon Maryasin", "author_email": "simeon@maryasin.name", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "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.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "===============\npytest-yamltree\n===============\n\n.. image:: https://travis-ci.org/MarSoft/pytest-yamltree.svg?branch=master\n :target: https://travis-ci.org/MarSoft/pytest-yamltree\n :alt: See Build Status on Travis CI\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/MarSoft/pytest-yamltree?branch=master\n :target: https://ci.appveyor.com/project/MarSoft/pytest-yamltree/branch/master\n :alt: See Build Status on AppVeyor\n\nCreate or check file/directory trees described by YAML\n\n----\n\nThis `Pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `Cookiecutter-pytest-plugin`_ template.\n\n\nFeatures\n--------\n\n* Monkey-patches `py.path.local`_ class (the one behind `tmpdir`_ fixture) to append `yaml_create` and `yaml_check` methods for easy access.\n* Use it like this::\n\n def test_foo(tmpdir):\n tmpdir.yaml_create(\"\"\"\n directory_one:\n file1: Hello World\n file2: \"Including\\nLine\\nBreaks\\n\"\n subdir:\n file3: |\n Some raw content here.\n It is probably better readable.\n directory_two:\n arrow.gif: !!binary |\n R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\n OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\n AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=\n \"\"\")\n\n # now these files are created under tmpdir\n assert tmpdir.join('directory_one', 'file1').read() == 'Hello World'\n\n # also can check that directory structure corresponds to the declaration\n tmpdir.yaml_check(\"\"\"\n directory_one:\n file1: Content\n directory_two: {} # empty mapping means empty directory\n \"\"\")\n\n\nRequirements\n------------\n\n* PyYAML\n\n\nInstallation\n------------\n\nYou can install \"pytest-yamltree\" via `pip`_ from `PyPI`_::\n\n $ pip install pytest-yamltree\n\n\nUsage\n-----\n\n* TODO\n\nContributing\n------------\nContributions are very welcome. Tests can be run with `tox`_, please ensure\nthe coverage at least stays the same before you submit a pull request.\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-yamltree\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause\n.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt\n.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/MarSoft/pytest-yamltree/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.python.org/pypi/pip/\n.. _`PyPI`: https://pypi.python.org/pypi\n.. _`py.path.local`: http://py.readthedocs.io/en/latest/path.html\n.. _`tmpdir`: https://docs.pytest.org/en/latest/tmpdir.html\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MarSoft/pytest-yamltree", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pytest-yamltree", "package_url": "https://pypi.org/project/pytest-yamltree/", "platform": "", "project_url": "https://pypi.org/project/pytest-yamltree/", "project_urls": { "Homepage": "https://github.com/MarSoft/pytest-yamltree" }, "release_url": "https://pypi.org/project/pytest-yamltree/0.1.1/", "requires_dist": [ "pytest (>=3.1.1)", "pyyaml" ], "requires_python": "", "summary": "Create or check file/directory trees described by YAML", "version": "0.1.1" }, "last_serial": 3043241, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b3e14d8739a73a4f8cd58559d44e7275", "sha256": "f0f011cb1babe1559f3bc6b73d6daf880c8cd151ed719546b18c2d7f3149e635" }, "downloads": -1, "filename": "pytest_yamltree-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3e14d8739a73a4f8cd58559d44e7275", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6539, "upload_time": "2017-07-23T14:56:27", "url": "https://files.pythonhosted.org/packages/61/1d/81ac386a3952dc5c74ca4a88677260706b923491686058d4ce4bf988d859/pytest_yamltree-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2a45781b8c7f05a9f83201bb8fd520b4", "sha256": "0f60436933b1ff7067ebdb9f4a2f62e3521a29928c1e149c7046959a519bfcf2" }, "downloads": -1, "filename": "pytest_yamltree-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2a45781b8c7f05a9f83201bb8fd520b4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6606, "upload_time": "2017-07-23T16:14:11", "url": "https://files.pythonhosted.org/packages/0e/e1/7f67b7638b91963b4db4562f526a16ff19fe1dc16974b9c3a0566ed75429/pytest_yamltree-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a45781b8c7f05a9f83201bb8fd520b4", "sha256": "0f60436933b1ff7067ebdb9f4a2f62e3521a29928c1e149c7046959a519bfcf2" }, "downloads": -1, "filename": "pytest_yamltree-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2a45781b8c7f05a9f83201bb8fd520b4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6606, "upload_time": "2017-07-23T16:14:11", "url": "https://files.pythonhosted.org/packages/0e/e1/7f67b7638b91963b4db4562f526a16ff19fe1dc16974b9c3a0566ed75429/pytest_yamltree-0.1.1-py2.py3-none-any.whl" } ] }