Test that an empty help param is displayed correctly.
(pytester: Pytester)
| 60 | |
| 61 | |
| 62 | def test_empty_help_param(pytester: Pytester) -> None: |
| 63 | """Test that an empty help param is displayed correctly.""" |
| 64 | pytester.makeconftest( |
| 65 | """ |
| 66 | def pytest_addoption(parser): |
| 67 | parser.addini("test_ini", "", default=True, type="bool") |
| 68 | """ |
| 69 | ) |
| 70 | result = pytester.runpytest("--help") |
| 71 | assert result.ret == 0 |
| 72 | lines = [ |
| 73 | " required_plugins (args):", |
| 74 | " plugins that must be present for pytest to run*", |
| 75 | " test_ini (bool):*", |
| 76 | "environment variables:", |
| 77 | ] |
| 78 | result.stdout.fnmatch_lines(lines, consecutive=True) |
| 79 | |
| 80 | |
| 81 | def test_hookvalidation_unknown(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected