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
55d7125f
Commit
55d7125f
authored
Dec 22, 2014
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pylint errors in test.py
parent
16fe8478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lms/envs/test.py
+10
-10
No files found.
lms/envs/test.py
View file @
55d7125f
...
@@ -74,14 +74,14 @@ SOUTH_TESTS_MIGRATE = False # To disable migrations and use syncdb instead
...
@@ -74,14 +74,14 @@ SOUTH_TESTS_MIGRATE = False # To disable migrations and use syncdb instead
# Nose Test Runner
# Nose Test Runner
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
_
system
=
'lms'
_
SYSTEM
=
'lms'
_
report_dir
=
REPO_ROOT
/
'reports'
/
_system
_
REPORT_DIR
=
REPO_ROOT
/
'reports'
/
_SYSTEM
_
report_dir
.
makedirs_p
()
_
REPORT_DIR
.
makedirs_p
()
NOSE_ARGS
=
[
NOSE_ARGS
=
[
'--id-file'
,
REPO_ROOT
/
'.testids'
/
_
system
/
'noseids'
,
'--id-file'
,
REPO_ROOT
/
'.testids'
/
_
SYSTEM
/
'noseids'
,
'--xunit-file'
,
_
report_dir
/
'nosetests.xml'
,
'--xunit-file'
,
_
REPORT_DIR
/
'nosetests.xml'
,
]
]
# Local Directories
# Local Directories
...
@@ -257,9 +257,9 @@ FEATURES['ENABLE_PAYMENT_FAKE'] = True
...
@@ -257,9 +257,9 @@ FEATURES['ENABLE_PAYMENT_FAKE'] = True
# the same settings, we can generate this randomly and guarantee
# the same settings, we can generate this randomly and guarantee
# that they are using the same secret.
# that they are using the same secret.
from
random
import
choice
from
random
import
choice
import
string
from
string
import
letters
,
digits
,
punctuation
# pylint: disable=deprecated-module
RANDOM_SHARED_SECRET
=
''
.
join
(
RANDOM_SHARED_SECRET
=
''
.
join
(
choice
(
string
.
letters
+
string
.
digits
+
string
.
punctuation
)
choice
(
letters
+
digits
+
punctuation
)
for
x
in
range
(
250
)
for
x
in
range
(
250
)
)
)
...
@@ -287,7 +287,7 @@ MEDIA_ROOT = TEST_ROOT / "uploads"
...
@@ -287,7 +287,7 @@ MEDIA_ROOT = TEST_ROOT / "uploads"
MEDIA_URL
=
"/static/uploads/"
MEDIA_URL
=
"/static/uploads/"
STATICFILES_DIRS
.
append
((
"uploads"
,
MEDIA_ROOT
))
STATICFILES_DIRS
.
append
((
"uploads"
,
MEDIA_ROOT
))
new_staticfiles_dirs
=
[]
_NEW_STATICFILES_DIRS
=
[]
# Strip out any static files that aren't in the repository root
# 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
# so that the tests can run with only the edx-platform directory checked out
for
static_dir
in
STATICFILES_DIRS
:
for
static_dir
in
STATICFILES_DIRS
:
...
@@ -298,8 +298,8 @@ for static_dir in STATICFILES_DIRS:
...
@@ -298,8 +298,8 @@ for static_dir in STATICFILES_DIRS:
data_dir
=
static_dir
data_dir
=
static_dir
if
data_dir
.
startswith
(
REPO_ROOT
):
if
data_dir
.
startswith
(
REPO_ROOT
):
new_staticfiles_dirs
.
append
(
static_dir
)
_NEW_STATICFILES_DIRS
.
append
(
static_dir
)
STATICFILES_DIRS
=
new_staticfiles_dirs
STATICFILES_DIRS
=
_NEW_STATICFILES_DIRS
FILE_UPLOAD_TEMP_DIR
=
TEST_ROOT
/
"uploads"
FILE_UPLOAD_TEMP_DIR
=
TEST_ROOT
/
"uploads"
FILE_UPLOAD_HANDLERS
=
(
FILE_UPLOAD_HANDLERS
=
(
...
...
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