Skip to content

Commit 28829d3

Browse files
committed
Added interim test set up and tear down actions. The InterimTests need the same setUp and tearDown of a test materials dir as the regular meeting tests, otherwise they are going to depend on individual developer's settings_local, and fail unpredictably.
- Legacy-Id: 11403
1 parent d298785 commit 28829d3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ietf/meeting/tests_views.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,15 @@ def test_make_schedule_official(self):
461461
# -------------------------------------------------
462462

463463
class InterimTests(TestCase):
464+
def setUp(self):
465+
self.materials_dir = os.path.abspath(settings.TEST_MATERIALS_DIR)
466+
if not os.path.exists(self.materials_dir):
467+
os.mkdir(self.materials_dir)
468+
settings.AGENDA_PATH = self.materials_dir
469+
470+
def tearDown(self):
471+
shutil.rmtree(self.materials_dir)
472+
464473
def check_interim_tabs(self, url):
465474
'''Helper function to check interim meeting list tabs'''
466475
# no logged in - no tabs

0 commit comments

Comments
 (0)