Added settings for the PhantomJS ghostdriver.log and the temporary meeting materials directory used during testing, so that it's possible to place them in other places than the working copy.

- Legacy-Id: 8646
This commit is contained in:
Henrik Levkowetz 2014-11-12 01:45:58 +00:00
parent 184662f5e0
commit c462e63adb
3 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,7 @@ def condition_data():
class ScheduleEditTests(LiveServerTestCase):
def setUp(self):
condition_data()
self.driver = webdriver.PhantomJS()
self.driver = webdriver.PhantomJS(service_log_path=settings.TEST_GHOSTDRIVER_LOG_PATH)
self.driver.set_window_size(1024,768)
def debugSnapshot(self,filename='debug_this.png'):

View file

@ -15,7 +15,7 @@ from ietf.utils.test_utils import TestCase
class MeetingTests(TestCase):
def setUp(self):
self.materials_dir = os.path.abspath("tmp-meeting-materials-dir")
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

View file

@ -262,6 +262,10 @@ GLOBAL_TEST_FIXTURES = [ 'names','ietf.utils.test_data.make_immutable_base_data'
TEST_DIFF_FAILURE_DIR = "/tmp/test/failure/"
TEST_GHOSTDRIVER_LOG_PATH = "ghostdriver.log"
TEST_MATERIALS_DIR = "tmp-meeting-materials-dir"
# WG Chair configuration
MAX_WG_DELEGATES = 3