Skip to content

Commit c462e63

Browse files
committed
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
1 parent 184662f commit c462e63

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/meeting/tests_js.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def condition_data():
3232
class ScheduleEditTests(LiveServerTestCase):
3333
def setUp(self):
3434
condition_data()
35-
self.driver = webdriver.PhantomJS()
35+
self.driver = webdriver.PhantomJS(service_log_path=settings.TEST_GHOSTDRIVER_LOG_PATH)
3636
self.driver.set_window_size(1024,768)
3737

3838
def debugSnapshot(self,filename='debug_this.png'):

ietf/meeting/tests_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class MeetingTests(TestCase):
1717
def setUp(self):
18-
self.materials_dir = os.path.abspath("tmp-meeting-materials-dir")
18+
self.materials_dir = os.path.abspath(settings.TEST_MATERIALS_DIR)
1919
if not os.path.exists(self.materials_dir):
2020
os.mkdir(self.materials_dir)
2121
settings.AGENDA_PATH = self.materials_dir

ietf/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ def skip_unreadable_post(record):
262262

263263
TEST_DIFF_FAILURE_DIR = "/tmp/test/failure/"
264264

265+
TEST_GHOSTDRIVER_LOG_PATH = "ghostdriver.log"
266+
267+
TEST_MATERIALS_DIR = "tmp-meeting-materials-dir"
268+
265269
# WG Chair configuration
266270
MAX_WG_DELEGATES = 3
267271

0 commit comments

Comments
 (0)