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
a35264af
Commit
a35264af
authored
Mar 16, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7368 from edx/clytwynec/fix_test_python_opts
pass opts From PythonTestSuite to NoseTestSuite
parents
c6992688
659e90ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
pavelib/utils/test/suites/python_suite.py
+4
-11
No files found.
pavelib/utils/test/suites/python_suite.py
View file @
a35264af
...
...
@@ -14,9 +14,8 @@ class PythonTestSuite(TestSuite):
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
PythonTestSuite
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
opts
=
kwargs
self
.
fasttest
=
kwargs
.
get
(
'fasttest'
,
False
)
self
.
failed_only
=
kwargs
.
get
(
'failed_only'
,
None
)
self
.
fail_fast
=
kwargs
.
get
(
'fail_fast'
,
None
)
self
.
subsuites
=
kwargs
.
get
(
'subsuites'
,
self
.
_default_subsuites
)
def
__enter__
(
self
):
...
...
@@ -30,19 +29,13 @@ class PythonTestSuite(TestSuite):
The default subsuites to be run. They include lms, cms,
and all of the libraries in common/lib.
"""
opts
=
{
'failed_only'
:
self
.
failed_only
,
'fail_fast'
:
self
.
fail_fast
,
'fasttest'
:
self
.
fasttest
,
}
lib_suites
=
[
LibTestSuite
(
d
,
**
opts
)
for
d
in
Env
.
LIB_TEST_DIRS
LibTestSuite
(
d
,
**
self
.
opts
)
for
d
in
Env
.
LIB_TEST_DIRS
]
system_suites
=
[
SystemTestSuite
(
'cms'
,
**
opts
),
SystemTestSuite
(
'lms'
,
**
opts
),
SystemTestSuite
(
'cms'
,
**
self
.
opts
),
SystemTestSuite
(
'lms'
,
**
self
.
opts
),
]
return
system_suites
+
lib_suites
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