File and parts.
(self, invocation_path: Path)
| 118 | return pytester.path |
| 119 | |
| 120 | def test_file(self, invocation_path: Path) -> None: |
| 121 | """File and parts.""" |
| 122 | assert resolve_collection_argument(invocation_path, "src/pkg/test.py") == ( |
| 123 | invocation_path / "src/pkg/test.py", |
| 124 | [], |
| 125 | ) |
| 126 | assert resolve_collection_argument(invocation_path, "src/pkg/test.py::") == ( |
| 127 | invocation_path / "src/pkg/test.py", |
| 128 | [""], |
| 129 | ) |
| 130 | assert resolve_collection_argument( |
| 131 | invocation_path, "src/pkg/test.py::foo::bar" |
| 132 | ) == (invocation_path / "src/pkg/test.py", ["foo", "bar"]) |
| 133 | assert resolve_collection_argument( |
| 134 | invocation_path, "src/pkg/test.py::foo::bar::" |
| 135 | ) == (invocation_path / "src/pkg/test.py", ["foo", "bar", ""]) |
| 136 | |
| 137 | def test_dir(self, invocation_path: Path) -> None: |
| 138 | """Directory and parts.""" |
nothing calls this directly
no test coverage detected