# HG changeset patch # User Johannes Bornhold # Date 2016-09-07 16:02:29 # Node ID b63d1121084103a34f7becd8215dc3c2aacfcafe # Parent d9d969e27e959381bba5ef16ff811942065d233e tests: Add vcsbackend_stub as a new fixture Corresponding to backend_stub. diff --git a/rhodecode/tests/plugin.py b/rhodecode/tests/plugin.py --- a/rhodecode/tests/plugin.py +++ b/rhodecode/tests/plugin.py @@ -719,6 +719,16 @@ def vcsbackend_random(vcsbackend_git): return vcsbackend_git +@pytest.fixture +def vcsbackend_stub(vcsbackend_git): + """ + Use this to express that your test just needs a stub of a vcsbackend. + + Plan is to eventually implement an in-memory stub to speed tests up. + """ + return vcsbackend_git + + class VcsBackend(object): """ Represents the test configuration for one supported vcs backend.