|
1 | | -"""pytest_sphinx |
| 1 | +"""pytest_doctest_docutils |
2 | 2 |
|
3 | 3 | pytest plugin for doctest w/ reStructuredText and markdown |
4 | 4 |
|
@@ -45,10 +45,10 @@ def pytest_unconfigure() -> None: |
45 | 45 |
|
46 | 46 | def pytest_collect_file( |
47 | 47 | file_path: Path, parent: pytest.Collector |
48 | | -) -> Optional["SphinxDoctestFile"]: |
| 48 | +) -> Optional["DocTestDocutilsFile"]: |
49 | 49 | config = parent.config |
50 | 50 | if _is_doctest(config, file_path, parent): |
51 | | - return SphinxDoctestFile.from_parent(parent, path=file_path) # type: ignore |
| 51 | + return DocTestDocutilsFile.from_parent(parent, path=file_path) # type: ignore |
52 | 52 | return None |
53 | 53 |
|
54 | 54 |
|
@@ -137,7 +137,7 @@ def _get_runner( |
137 | 137 | ) |
138 | 138 |
|
139 | 139 |
|
140 | | -class SphinxDocTestRunner(doctest.DocTestRunner): |
| 140 | +class DocutilsDocTestRunner(doctest.DocTestRunner): |
141 | 141 | def summarize( # type: ignore |
142 | 142 | self, out: "_Out", verbose: Optional[bool] = None |
143 | 143 | ) -> Tuple[int, int]: |
@@ -169,7 +169,7 @@ def _DocTestRunner__patched_linecache_getlines( |
169 | 169 | return self.save_linecache_getlines(filename, module_globals) # type: ignore |
170 | 170 |
|
171 | 171 |
|
172 | | -class SphinxDoctestFile(pytest.Module): |
| 172 | +class DocTestDocutilsFile(pytest.Module): |
173 | 173 | def collect(self) -> Iterable[DoctestItem]: |
174 | 174 | setup() |
175 | 175 |
|
|
0 commit comments