We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b9223 commit 77bbbc7Copy full SHA for 77bbbc7
pdoc/test/__init__.py
@@ -834,7 +834,8 @@ def test_extract_toc(self):
834
toc = extract_toc(text)
835
self.assertEqual(toc, expected)
836
837
- @unittest.skipIf(shutil.which("git") is None, reason="test assumes git installed on system")
+ @unittest.skipIf(shutil.which("git") is None or not os.path.exists('.git'),
838
+ "git not installed or we're not within git repo")
839
def test_format_git_link(self):
840
url = format_git_link(
841
template='https://github.com/pdoc3/pdoc/blob/{commit}/{path}#L{start_line}-L{end_line}',
0 commit comments