Skip to content

Commit 40c615a

Browse files
committed
Adds cleanup step for bundles folder in tests
1 parent 2787385 commit 40c615a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/app/tests/test_webpack.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22
import os
33
import time
4+
from shutil import rmtree
45
from subprocess import call
56
from threading import Thread
67

@@ -26,6 +27,10 @@
2627
class LoaderTestCase(TestCase):
2728
def setUp(self):
2829
self.factory = RequestFactory()
30+
self.cleanup_bundles_folder()
31+
32+
def cleanup_bundles_folder(self):
33+
rmtree('./assets/bundles', ignore_errors=True)
2934

3035
def compile_bundles(self, config, wait=None):
3136
if wait:

0 commit comments

Comments
 (0)