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
2702c276
Commit
2702c276
authored
Mar 23, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP...includes nose breakages so you want to revert this.
parent
5d250891
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
pavelib/js_test.py
+1
-1
pavelib/utils/test/suites/js_suite.py
+1
-0
pavelib/utils/test/utils.py
+6
-4
No files found.
pavelib/js_test.py
View file @
2702c276
...
...
@@ -2,7 +2,7 @@
Javascript test tasks
"""
import
sys
from
paver.easy
import
task
,
cmdopts
,
needs
from
paver.easy
import
task
,
c
onsume_args
,
c
mdopts
,
needs
from
pavelib.utils.test.suites
import
JsTestSuite
from
pavelib.utils.envs
import
Env
...
...
pavelib/utils/test/suites/js_suite.py
View file @
2702c276
...
...
@@ -32,6 +32,7 @@ class JsTestSuite(TestSuite):
def
__enter__
(
self
):
super
(
JsTestSuite
,
self
)
.
__enter__
()
self
.
report_dir
.
makedirs_p
()
from
nose.tools
import
set_trace
;
set_trace
()
if
not
self
.
skip_clean
:
test_utils
.
clean_test_files
(
skip_staticfiles
=
True
)
...
...
pavelib/utils/test/utils.py
View file @
2702c276
"""
Helper functions for test tasks
"""
from
paver.easy
import
sh
,
task
,
cmdopts
from
paver.easy
import
sh
,
task
,
cmdopts
,
consume_args
from
pavelib.utils.envs
import
Env
import
os
import
subprocess
...
...
@@ -13,7 +13,8 @@ __test__ = False # do not collect
@task
def
clean_test_files
(
skip_staticfiles
=
False
):
@consume_args
def
clean_test_files
(
skip_staticfiles
=
None
):
"""
Clean fixture files used by tests and .pyc files
...
...
@@ -21,9 +22,10 @@ def clean_test_files(skip_staticfiles=False):
cleaning the staticfiles directory, which is expensive to create
but not relevant for all test types.
"""
static_files_str
=
""
static_files_str
=
"
test_root/staticfiles
"
if
skip_staticfiles
:
static_files_str
=
"test_root/staticfiles"
static_files_str
=
""
from
nose.tools
import
set_trace
;
set_trace
()
sh
(
"git clean -fqdx test_root/logs test_root/data {static_files_str} test_root/uploads"
.
format
(
static_files_str
=
static_files_str
))
...
...
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