{ "info": { "author": "Steinwurf ApS", "author_email": "contact@steinwurf.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Testing" ], "description": "============\nIntroduction\n============\n\n.. image:: https://badge.fury.io/py/pytest-vagrant.svg\n :target: https://badge.fury.io/py/pytest-vagrant\n\npytest-vagrant provides a py.test fixture for working with vagrant\nin pytest.\n\n.. contents:: Table of Contents:\n :local:\n\nInstallation\n===========\n\nTo install pytest-vagrant::\n\n pip install pytest-vagrant\n\nUsage\n=====\n\nTo make it easy to use in with py.test the Vagrant object can be\ninjected into a test function by using the vagrant fixture.\n\nExample::\n\n def test_this_function(vagrant):\n if vagrant.status.not_created:\n vagrant.up()\n\nThe vagrant argument is an instance of Vagrant and represents the vagrant\nenvironment on the machine running the test code.\n\nRelase new version\n==================\n\n1. Edit NEWS.rst and wscript (set correct VERSION)\n2. Run ::\n\n ./waf upload\n\nSource code\n===========\n\nThe main functionality is found in ``src/vagrant.py`` and the\ncorresponding unit test is in ``test/test_vagrant.py`` if you\nwant to play/modify/fix the code this would, in most cases, be the place\nto start.\n\nDeveloper Notes\n===============\n\nWe try to make our projects as independent as possible of a local system setup.\nFor example with our native code (C/C++) we compile as much as possible from\nsource, since this makes us independent of what is currently installed\n(libraries etc.) on a specific machine.\n\nTo \"fetch\" sources we use Waf (https://waf.io/) augmented with dependency\nresolution capabilities: https://github.com/steinwurf/waf\n\nThe goal is to enable a work-flow where running::\n\n ./waf configure\n ./waf build --run_tests\n\nConfigures, builds and runs any available tests for a given project, such that\nyou as a developer can start hacking at the code.\n\nFor Python project this is a bit unconventional, but we think it works well.\n\nTests\n=====\n\nThe tests will run automatically by passing ``--run_tests`` to waf::\n\n ./waf --run_tests\n\nThis follows what seems to be \"best practice\" advise, namely to install the\npackage in editable mode in a virtualenv.\n\nNotes\n=====\n\n* Why use an ``src`` folder (https://hynek.me/articles/testing-packaging/).\n tl;dr you should run your tests in the same environment as your users would\n run your code. So by placing the source files in a non-importable folder you\n avoid accidentally having access to resources not added to the Python\n package your users will install...\n* Python packaging guide: https://packaging.python.org/distributing/\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/steinwurf/pytest-vagrant", "keywords": "pytest py.test testing unit tests plugin vagrant", "license": "BSD 3-clause \"New\" or \"Revised\" License", "maintainer": "", "maintainer_email": "", "name": "pytest-vagrant", "package_url": "https://pypi.org/project/pytest-vagrant/", "platform": "", "project_url": "https://pypi.org/project/pytest-vagrant/", "project_urls": { "Homepage": "https://github.com/steinwurf/pytest-vagrant" }, "release_url": "https://pypi.org/project/pytest-vagrant/1.0.0/", "requires_dist": [ "pytest", "paramiko" ], "requires_python": "", "summary": "A py.test plugin providing access to vagrant.", "version": "1.0.0" }, "last_serial": 3985801, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "0579ac65296e4f047bb2fe54c0638658", "sha256": "ee5c7cf55d50234a8cfe84dabb5feff75408b220ded283d6d1e0f802ec17314b" }, "downloads": -1, "filename": "pytest_vagrant-0.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0579ac65296e4f047bb2fe54c0638658", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5979, "upload_time": "2018-06-21T08:40:53", "url": "https://files.pythonhosted.org/packages/10/1e/4b7edba4d1484f75a3429793a80ff2230272ea41d40d8983acffd2f9e304/pytest_vagrant-0.0.0-py2.py3-none-any.whl" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9891dcdd9cf13aedf7abb6ac14f8dd12", "sha256": "472a367740aa6cee7a9e6cdfad8205354ac396ab7d1db0223af1e6559f4e5843" }, "downloads": -1, "filename": "pytest_vagrant-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9891dcdd9cf13aedf7abb6ac14f8dd12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6622, "upload_time": "2018-06-21T14:02:35", "url": "https://files.pythonhosted.org/packages/b3/94/3c44e66344ad23fe7296cffcd974281adce7358a104626f2993638a23952/pytest_vagrant-1.0.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9891dcdd9cf13aedf7abb6ac14f8dd12", "sha256": "472a367740aa6cee7a9e6cdfad8205354ac396ab7d1db0223af1e6559f4e5843" }, "downloads": -1, "filename": "pytest_vagrant-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9891dcdd9cf13aedf7abb6ac14f8dd12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6622, "upload_time": "2018-06-21T14:02:35", "url": "https://files.pythonhosted.org/packages/b3/94/3c44e66344ad23fe7296cffcd974281adce7358a104626f2993638a23952/pytest_vagrant-1.0.0-py2.py3-none-any.whl" } ] }