Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to execute test_invocation from sources
without testinfra being installed, using for example: PYTHONPATH=. pytest test/test_invocation.py Fix this issue: =============================== FAILURES =============================== __________________________ test_nagios_notest __________________________ testdir = <Testdir local('/tmp/pytest-of-pilou/pytest/test_nagios_notest0')> def test_nagios_notest(testdir): result = testdir.runpytest('--nagios', '-q', '--tb=no') > assert result.ret == 0 E assert 4 == 0 E + where 4 = <RunResult ret=4 len(stdout.lines)=1 len(stderr.lines)=6 duration=0.06s>.ret src/testinfra/test/test_invocation.py:18: AssertionError ------------------------- Captured stderr call ------------------------- ERROR: usage: pytest-3 [options] [file_or_dir] [file_or_dir] [...] pytest-3: error: unrecognized arguments: --nagios inifile: None rootdir: /tmp/pytest-of-pilou/pytest/test_nagios_notest0
- Loading branch information