Skip to content

Commit 313d5b9

Browse files
committed
test deprecation warning
1 parent 0afa8ab commit 313d5b9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pytest-cov/test_pytest_cov.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,16 @@ def test_not_started_plugin_does_not_fail(testdir):
507507
plugin = pytest_cov.CovPlugin(None, None, start=False)
508508
plugin.pytest_sessionfinish(None, None)
509509
plugin.pytest_terminal_summary(None)
510+
511+
512+
def test_deprecation_warning(testdir):
513+
script = testdir.makepyfile(SCRIPT)
514+
515+
result = testdir.runpytest('-v',
516+
'--cov=%s' % script.dirpath(),
517+
script)
518+
519+
result.stdout.fnmatch_lines([
520+
'Deprecation warning: * --cov-source instead*'
521+
])
522+
assert result.ret == 0

0 commit comments

Comments
 (0)