Testing Utilities¶
additional py.test options¶
- --vcs {name}¶
limit the testing for backends to the given vcs
- --local-remoting¶
if given also test the local remoting
- --no-direct-api¶
Don’t run the normal local testing, useful for remote-only
pytest funcargs¶
Utility Classes¶
- class VcsMan(vc, base, backend)[source]¶
utility class to manage the creation of repositories and workdirs inside of a specific path (usually the tmpdir funcarg of a test)
- base¶
Type: py.path.local the base directory
- vc¶
The name of the managed vcs
- backend¶
Type: anyvc.backend.Backend The backend instance giving access to the currently tested vcs
- remote¶
boolean telling if the remoting support is used
- xspec¶
A execnet.XSpec telling remote python if remoting is used
- class WdWrap(wd)[source]¶
Parameters: wd (subclass of anyvc.common.workdir.Workdir) – the workdir to wrap decorator for a vcs workdir instance adds testing utility functions and proxies the other methods/attributes to the real instance