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
9cf0f090
Commit
9cf0f090
authored
Jan 28, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Pearson unit tests.
parent
163400e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
common/djangoapps/student/management/commands/tests/test_pearson.py
+3
-2
lms/envs/test.py
+1
-1
No files found.
common/djangoapps/student/management/commands/tests/test_pearson.py
View file @
9cf0f090
...
...
@@ -40,6 +40,7 @@ def create_tc_registration(username, course_id = 'org1/course1/term1', exam_code
'eligibility_appointment_date_first'
:
'2013-01-01T00:00'
,
'eligibility_appointment_date_last'
:
'2013-12-31T23:59'
,
'accommodation_code'
:
accommodation_code
,
'create_dummy_exam'
:
True
,
}
call_command
(
'pearson_make_tc_registration'
,
username
,
course_id
,
**
options
)
...
...
@@ -179,11 +180,11 @@ class PearsonCommandTestCase(PearsonTestCase):
self
.
assertErrorContains
(
error_string
,
'Field Form Error: address_1'
)
def
test_create_good_testcenter_user
(
self
):
testcenter_user
=
create_tc_user
(
"test
1
"
)
testcenter_user
=
create_tc_user
(
"test
_good_user
"
)
self
.
assertIsNotNone
(
testcenter_user
)
def
test_create_good_testcenter_registration
(
self
):
username
=
'test
1
'
username
=
'test
_good_registration
'
create_tc_user
(
username
)
registration
=
create_tc_registration
(
username
)
self
.
assertIsNotNone
(
registration
)
...
...
lms/envs/test.py
View file @
9cf0f090
...
...
@@ -17,7 +17,7 @@ from path import path
MITX_FEATURES
[
'DISABLE_START_DATES'
]
=
True
# Until we have discussion actually working in test mode, just turn it off
#MITX_FEATURES['ENABLE_DISCUSSION_SERVICE'] = Tru
e
MITX_FEATURES
[
'ENABLE_DISCUSSION_SERVICE'
]
=
Fals
e
# Need wiki for courseware views to work. TODO (vshnayder): shouldn't need it.
WIKI_ENABLED
=
True
...
...
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