Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
55d7125f
Commit
55d7125f
authored
10 years ago
by
Jesse Zoldak
Browse files
Options
Downloads
Patches
Plain Diff
fix pylint errors in test.py
parent
16fe8478
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/envs/test.py
+10
-10
10 additions, 10 deletions
lms/envs/test.py
with
10 additions
and
10 deletions
lms/envs/test.py
+
10
−
10
View file @
55d7125f
...
...
@@ -74,14 +74,14 @@ SOUTH_TESTS_MIGRATE = False # To disable migrations and use syncdb instead
# Nose Test Runner
TEST_RUNNER
=
'
django_nose.NoseTestSuiteRunner
'
_
system
=
'
lms
'
_
SYSTEM
=
'
lms
'
_
report_dir
=
REPO_ROOT
/
'
reports
'
/
_
system
_
report_dir
.
makedirs_p
()
_
REPORT_DIR
=
REPO_ROOT
/
'
reports
'
/
_
SYSTEM
_
REPORT_DIR
.
makedirs_p
()
NOSE_ARGS
=
[
'
--id-file
'
,
REPO_ROOT
/
'
.testids
'
/
_
system
/
'
noseids
'
,
'
--xunit-file
'
,
_
report_dir
/
'
nosetests.xml
'
,
'
--id-file
'
,
REPO_ROOT
/
'
.testids
'
/
_
SYSTEM
/
'
noseids
'
,
'
--xunit-file
'
,
_
REPORT_DIR
/
'
nosetests.xml
'
,
]
# Local Directories
...
...
@@ -257,9 +257,9 @@ FEATURES['ENABLE_PAYMENT_FAKE'] = True
# the same settings, we can generate this randomly and guarantee
# that they are using the same secret.
from
random
import
choice
import
string
from
string
import
letters
,
digits
,
punctuation
# pylint: disable=deprecated-module
RANDOM_SHARED_SECRET
=
''
.
join
(
choice
(
string
.
letters
+
string
.
digits
+
string
.
punctuation
)
choice
(
letters
+
digits
+
punctuation
)
for
x
in
range
(
250
)
)
...
...
@@ -287,7 +287,7 @@ MEDIA_ROOT = TEST_ROOT / "uploads"
MEDIA_URL
=
"
/static/uploads/
"
STATICFILES_DIRS
.
append
((
"
uploads
"
,
MEDIA_ROOT
))
new_staticfiles_dirs
=
[]
_NEW_STATICFILES_DIRS
=
[]
# Strip out any static files that aren't in the repository root
# so that the tests can run with only the edx-platform directory checked out
for
static_dir
in
STATICFILES_DIRS
:
...
...
@@ -298,8 +298,8 @@ for static_dir in STATICFILES_DIRS:
data_dir
=
static_dir
if
data_dir
.
startswith
(
REPO_ROOT
):
new_staticfiles_dirs
.
append
(
static_dir
)
STATICFILES_DIRS
=
new_staticfiles_dirs
_NEW_STATICFILES_DIRS
.
append
(
static_dir
)
STATICFILES_DIRS
=
_NEW_STATICFILES_DIRS
FILE_UPLOAD_TEMP_DIR
=
TEST_ROOT
/
"
uploads
"
FILE_UPLOAD_HANDLERS
=
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment