Metadata-Version: 2.0
Name: pytest-svn
Version: 1.0.0
Summary: SVN repository fixture for py.test
Home-page: https://github.com/manahl/pytest-plugins
Author: Edward Easton
Author-email: eeaston@gmail.com
License: MIT license
Platform: unix
Platform: linux
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Requires-Dist: pytest
Requires-Dist: pytest-shutil

Pytest SVN Fixture
==================

Creates an empty SVN repository for testing that cleans up after itself
on teardown.

Installation
------------

Install using your favourite package installer:

.. code:: bash

        pip install pytest-svn
        # or
        easy_install pytest-svn

Enable the fixture explicitly in your tests or conftest.py (not required
when using setuptools entry points):

.. code:: python

        pytest_plugins = ['pytest_svn']

Usage
-----

Here's a noddy test case that shows it working:

.. code:: python

    def test_svn_repo(svn_repo):
        # The fixture derives from `workspace` in `pytest-shutil`, so they contain 
        # a handle to the path.py path object (see https://pythonhosted.org/path.py)
        path = svn_repo.workspace
        file = path / 'hello.txt'
        file.write_text('hello world!')

        # We can also run things relative to the repo
        svn_repo.run('svn add hello.txt')

        # The fixture has a URI property you can use in downstream systems
        assert svn_repo.uri.startswith('file://')


Changelog
---------

1.0 (2015-12-21)
~~~~~~~~~~~~~~~~

-  Initial public release



