Skip to content

Commit

Permalink
chore: remove bok-choy references
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2013 authored and feanil committed Jan 23, 2024
1 parent 963212d commit 595805c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions ecommerce/extensions/dashboard/refunds/tests/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def _local_browser_class(browser_name):

# Get class of local browser based on name
browser_class = BROWSERS.get(browser_name)
headless = os.environ.get('BOKCHOY_HEADLESS', 'false').lower() == 'true'
if browser_class is None:
raise BrowserConfigError(
f"Invalid browser name {browser_name}. Options are: {', '.join(list(BROWSERS.keys()))}"
Expand All @@ -195,8 +194,7 @@ def _local_browser_class(browser_name):

firefox_options = FirefoxOptions()
firefox_options.log.level = 'trace'
if headless:
firefox_options.headless = True
firefox_options.headless = True
browser_args = []
browser_kwargs = {
'options': firefox_options,
Expand All @@ -220,8 +218,7 @@ def _local_browser_class(browser_name):

elif browser_name == 'chrome':
chrome_options = ChromeOptions()
if headless:
chrome_options.headless = True
chrome_options.headless = True

# Emulate webcam and microphone for testing purposes
chrome_options.add_argument('--use-fake-device-for-media-stream')
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ setenv =
acceptance: DJANGO_SETTINGS_MODULE = ecommerce.settings.test
check_keywords: DJANGO_SETTINGS_MODULE = ecommerce.settings.test
extract_translations: DJANGO_SETTINGS_MODULE=
BOKCHOY_HEADLESS = true
NODE_BIN = ./node_modules/.bin
PATH=$PATH:$NODE_BIN
SELENIUM_BROWSER=firefox
Expand Down

0 comments on commit 595805c

Please sign in to comment.