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:
parent
d298785fda
commit
28829d34c5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue