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
This commit is contained in:
Henrik Levkowetz 2016-06-17 15:00:11 +00:00
parent d298785fda
commit 28829d34c5

View file

@ -461,6 +461,15 @@ class EditScheduleListTests(TestCase):
# -------------------------------------------------
class InterimTests(TestCase):
def setUp(self):
self.materials_dir = os.path.abspath(settings.TEST_MATERIALS_DIR)
if not os.path.exists(self.materials_dir):
os.mkdir(self.materials_dir)
settings.AGENDA_PATH = self.materials_dir
def tearDown(self):
shutil.rmtree(self.materials_dir)
def check_interim_tabs(self, url):
'''Helper function to check interim meeting list tabs'''
# no logged in - no tabs