refactor(backend): standardize errors and simplify configuration and test setup
This commit is contained in:
1 parent
1535c19b8c
commit
138666a7bb
92 files changed
+3994
-210
No files matched your search
@@ -13,6 +13,9 @@ from urllib.parse import unquote, urlsplit
|
||||
|
||||
IGNORED_DIRS = {
|
||||
".git",
|
||||
".cache",
|
||||
".bin",
|
||||
".tools",
|
||||
".next",
|
||||
".pnpm-store",
|
||||
".pytest_cache",
|
||||
|
||||
@@ -49,6 +49,11 @@ class DocsCheckTests(unittest.TestCase):
|
||||
self.write("docs/en/FAQ.md", "# FAQ\n")
|
||||
self.assertEqual([], DOCS_CHECK.validate_repository(self.root))
|
||||
|
||||
def test_ignores_scanner_dependency_documentation(self) -> None:
|
||||
for directory in (".cache", ".bin", ".tools"):
|
||||
self.write(f"security/{directory}/dependency/README.md", "[Upstream](missing.md)\n")
|
||||
self.assertEqual([], DOCS_CHECK.validate_repository(self.root))
|
||||
|
||||
def test_ignores_link_syntax_inside_inline_code(self) -> None:
|
||||
self.write("README.md", "Use `[missing](not-a-real-link.md)` as an example.\n")
|
||||
self.assertEqual([], DOCS_CHECK.validate_repository(self.root))
|
||||
|
||||
Reference in new issue
Block a user