Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b059d37b
Commit
b059d37b
authored
Sep 25, 2014
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skipping the firefox version validation if firefox is not the browser being used
parent
ed68b0ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
pavelib/bok_choy.py
+8
-2
No files found.
pavelib/bok_choy.py
View file @
b059d37b
...
...
@@ -7,6 +7,7 @@ from pavelib.utils.test.suites.bokchoy_suite import BokChoyTestSuite
from
pavelib.utils.envs
import
Env
from
pavelib.utils.test.utils
import
check_firefox_version
from
optparse
import
make_option
import
os
try
:
from
pygments.console
import
colorize
...
...
@@ -40,9 +41,14 @@ def test_bokchoy(options):
- path/to/test.py:TestFoo.test_bar
It can also be left blank to run all tests in the suite.
"""
if
getattr
(
options
,
'validate_firefox_version'
,
True
):
# Note: Bok Choy uses firefox if SELENIUM_BROWSER is not set. So we are using
# firefox as the default here.
using_firefox
=
(
os
.
environ
.
get
(
'SELENIUM_BROWSER'
,
'firefox'
)
==
'firefox'
)
validate_firefox
=
getattr
(
options
,
'validate_firefox_version'
,
using_firefox
)
if
validate_firefox
:
check_firefox_version
()
opts
=
{
'test_spec'
:
getattr
(
options
,
'test_spec'
,
None
),
'fasttest'
:
getattr
(
options
,
'fasttest'
,
False
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment