File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 11import os
22
3- from django .conf import settings
43from selenium import webdriver
54from selenium .webdriver .common .by import By
65from selenium .webdriver .firefox .options import Options
@@ -23,7 +22,7 @@ def setUpClass(cls):
2322 super ().setUpClass ()
2423 firefox_options = Options ()
2524 firefox_options .page_load_strategy = 'eager'
26- if getattr ( settings , 'SELENIUM_HEADLESS' , True ):
25+ if os . environ . get ( 'SELENIUM_HEADLESS' , False ):
2726 firefox_options .add_argument ('--headless' )
2827 GECKO_BIN = os .environ .get ('GECKO_BIN' , None )
2928 if GECKO_BIN :
Original file line number Diff line number Diff line change 44
55SECRET_KEY = '@s8$swhj9du^aglt5+@ut^)wepr+un1m7r*+ixcq(-5i^st=y^'
66
7- SELENIUM_HEADLESS = True if os .environ .get ('SELENIUM_HEADLESS' , False ) else False
8-
97DEBUG = True
108
119ALLOWED_HOSTS = []
You can’t perform that action at this time.
0 commit comments