Add a test for '-p <plugin>' arg

This commit is contained in:
Yannick PEROUX 2023-01-13 11:25:23 +01:00
parent e16690b642
commit 2c0ce0964d
No known key found for this signature in database
GPG Key ID: EFD281B583EA65C6
1 changed files with 4 additions and 0 deletions

View File

@ -1809,6 +1809,10 @@ def test_config_does_not_load_blocked_plugin_from_args(pytester: Pytester) -> No
result.stderr.fnmatch_lines(["*: error: unrecognized arguments: -s"])
assert result.ret == ExitCode.USAGE_ERROR
result = pytester.runpytest(str(p), "-p no:capture", "-s")
result.stderr.fnmatch_lines(["*: error: unrecognized arguments: -s"])
assert result.ret == ExitCode.USAGE_ERROR
def test_invocation_args(pytester: Pytester) -> None:
"""Ensure that Config.invocation_* arguments are correctly defined"""