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
7a3a56d4
Commit
7a3a56d4
authored
Feb 13, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing tests
parent
5f29e0e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
7 deletions
+30
-7
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
+6
-4
common/lib/xmodule/xmodule/tests/test_self_assessment.py
+3
-2
common/lib/xmodule/xmodule/tests/test_util_open_ended.py
+15
-0
lms/djangoapps/open_ended_grading/tests.py
+6
-1
No files found.
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
View file @
7a3a56d4
...
...
@@ -12,6 +12,8 @@ import capa.xqueue_interface as xqueue_interface
from
datetime
import
datetime
from
.
import
test_system
import
test_util_open_ended
"""
Tests for the various pieces of the CombinedOpenEndedGrading system
...
...
@@ -163,8 +165,8 @@ class OpenEndedModuleTest(unittest.TestCase):
'accept_file_upload'
:
False
,
'rewrite_content_links'
:
""
,
'close_date'
:
None
,
's3_interface'
:
""
,
'open_ended_grading_interface'
:
{}
,
's3_interface'
:
test_util_open_ended
.
S3_INTERFACE
,
'open_ended_grading_interface'
:
test_util_open_ended
.
OPEN_ENDED_GRADING_INTERFACE
,
}
oeparam
=
etree
.
XML
(
'''
...
...
@@ -297,8 +299,8 @@ class CombinedOpenEndedModuleTest(unittest.TestCase):
'accept_file_upload'
:
False
,
'rewrite_content_links'
:
""
,
'close_date'
:
""
,
's3_interface'
:
""
,
'open_ended_grading_interface'
:
{}
,
's3_interface'
:
test_util_open_ended
.
S3_INTERFACE
,
'open_ended_grading_interface'
:
test_util_open_ended
.
OPEN_ENDED_GRADING_INTERFACE
,
}
oeparam
=
etree
.
XML
(
'''
...
...
common/lib/xmodule/xmodule/tests/test_self_assessment.py
View file @
7a3a56d4
...
...
@@ -9,6 +9,7 @@ from nose.plugins.skip import SkipTest
from
.
import
test_system
import
test_util_open_ended
class
SelfAssessmentTest
(
unittest
.
TestCase
):
...
...
@@ -48,8 +49,8 @@ class SelfAssessmentTest(unittest.TestCase):
'display_name'
:
"Name"
,
'accept_file_upload'
:
False
,
'close_date'
:
None
,
's3_interface'
:
""
,
'open_ended_grading_interface'
:
{}
,
's3_interface'
:
test_util_open_ended
.
S3_INTERFACE
,
'open_ended_grading_interface'
:
test_util_open_ended
.
OPEN_ENDED_GRADING_INTERFACE
,
}
self
.
module
=
SelfAssessmentModule
(
test_system
,
self
.
location
,
...
...
common/lib/xmodule/xmodule/tests/test_util_open_ended.py
0 → 100644
View file @
7a3a56d4
OPEN_ENDED_GRADING_INTERFACE
=
{
'url'
:
'http://127.0.0.1:3033/'
,
'username'
:
'incorrect'
,
'password'
:
'incorrect'
,
'staff_grading'
:
'staff_grading'
,
'peer_grading'
:
'peer_grading'
,
'grading_controller'
:
'grading_controller'
}
S3_INTERFACE
=
{
'aws_access_key'
:
""
,
'aws_secret_key'
:
""
,
"aws_bucket_name"
:
""
,
}
\ No newline at end of file
lms/djangoapps/open_ended_grading/tests.py
View file @
7a3a56d4
...
...
@@ -26,6 +26,8 @@ log = logging.getLogger(__name__)
from
override_settings
import
override_settings
from
django.http
import
QueryDict
from
xmodule.tests
import
test_util_open_ended
@override_settings
(
MODULESTORE
=
ct
.
TEST_DATA_XML_MODULESTORE
)
class
TestStaffGradingService
(
ct
.
PageLoader
):
...
...
@@ -144,7 +146,10 @@ class TestPeerGradingService(ct.PageLoader):
location
=
"i4x://edX/toy/peergrading/init"
self
.
mock_service
=
peer_grading_service
.
MockPeerGradingService
()
self
.
system
=
ModuleSystem
(
location
,
None
,
None
,
render_to_string
,
None
,
s3_interface
=
""
,
open_ended_grading_interface
=
{})
self
.
system
=
ModuleSystem
(
location
,
None
,
None
,
render_to_string
,
None
,
s3_interface
=
test_util_open_ended
.
S3_INTERFACE
,
open_ended_grading_interface
=
test_util_open_ended
.
OPEN_ENDED_GRADING_INTERFACE
)
self
.
descriptor
=
peer_grading_module
.
PeerGradingDescriptor
(
self
.
system
)
self
.
peer_module
=
peer_grading_module
.
PeerGradingModule
(
self
.
system
,
location
,
"<peergrading/>"
,
self
.
descriptor
)
self
.
peer_module
.
peer_gs
=
self
.
mock_service
...
...
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