Returns a list of explicitly specified tests from the given args. Note that access to _pytest.config.argparsing.Parser() constructor is deprecated in pytest 7.0. https://docs.pytest.org/en/stable/deprecations.html#directly-constructing-internal-classes
(args)
| 133 | |
| 134 | |
| 135 | def get_explicit_tests(args): |
| 136 | """ Returns a list of explicitly specified tests from the given args. |
| 137 | |
| 138 | Note that access to _pytest.config.argparsing.Parser() constructor is deprecated |
| 139 | in pytest 7.0. |
| 140 | https://docs.pytest.org/en/stable/deprecations.html#directly-constructing-internal-classes |
| 141 | """ |
| 142 | pytest_arg_parser = Parser() |
| 143 | parsed_args = pytest_arg_parser.parse_known_args(args) |
| 144 | return parsed_args.file_or_dir |
| 145 | |
| 146 | |
| 147 | def build_test_args(base_name, valid_dirs=VALID_TEST_DIRS): |
no test coverage detected