[damned-lies] Clean html dir in DocsBuildingTests



commit 9dab45eeab2231183c4438a1bab6d9b8a2444e22
Author: Claude Paroz <claude 2xlibre net>
Date:   Sun Sep 30 11:42:01 2018 +0200

    Clean html dir in DocsBuildingTests

 vertimus/tests/tests.py | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/vertimus/tests/tests.py b/vertimus/tests/tests.py
index 3a919d7c..70642404 100644
--- a/vertimus/tests/tests.py
+++ b/vertimus/tests/tests.py
@@ -780,6 +780,12 @@ class VertimusTest(TeamsAndRolesMixin, TestCase):
 
 
 class DocsBuildingTests(TeamsAndRolesMixin, TestModuleBase):
+    def setUp(self):
+        super().setUp()
+        html_dir = Path(settings.SCRATCHDIR) / 'HTML'
+        if html_dir.exists():
+            shutil.rmtree(str(html_dir))
+
     def test_doc_building(self):
         dom = Domain.objects.create(
             module=self.mod, name='help', description='User Guide', dtype='doc',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]