changes 4
All checks were successful
Build Org Website / build (push) Successful in 53s

This commit is contained in:
2026-05-08 00:03:57 +01:00
parent 90724c22ff
commit fe9d55d638
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ class UtilityTests(AuthoringServerTestCase):
wrong_root.mkdir()
(self.root / "authoring_server.py").write_text("", encoding="utf-8")
with mock.patch.dict(os.environ, {"AUTHOR_ROOT": str(wrong_root)}), mock.patch.object(server.Path, "cwd", return_value=self.root):
with mock.patch.dict(os.environ, {"AUTHOR_ROOT": str(wrong_root), "GITHUB_WORKSPACE": ""}), mock.patch.object(server.Path, "cwd", return_value=self.root):
self.assertEqual(server.resolve_root(), self.root)
def test_slugify_normalises_text_and_keeps_fallback(self):