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
dbfa6daf
Commit
dbfa6daf
authored
Sep 03, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in merge to master
parent
821cc594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
24 deletions
+3
-24
lms/djangoapps/lti_provider/tasks.py
+1
-6
lms/djangoapps/lti_provider/tests/test_outcomes.py
+2
-18
No files found.
lms/djangoapps/lti_provider/tasks.py
View file @
dbfa6daf
...
...
@@ -53,12 +53,7 @@ def score_changed_handler(sender, **kwargs): # pylint: disable=unused-argument
)
<<<<<<<
HEAD
@CELERY_APP.task
(
name
=
'lti_provider.tasks.send_outcome'
)
def
send_outcome
(
points_possible
,
points_earned
,
user_id
,
course_id
,
usage_id
):
=======
def
increment_assignment_versions
(
course_key
,
usage_key
,
user_id
):
>>>>>>>
edx
/
master
"""
Update the version numbers for all assignments that are affected by a score
change event. Returns a list of all affected assignments.
...
...
@@ -77,7 +72,7 @@ def increment_assignment_versions(course_key, usage_key, user_id):
return
assignments
@CELERY_APP.task
@CELERY_APP.task
(
name
=
'lti_provider.tasks.send_composite_outcome'
)
def
send_composite_outcome
(
user_id
,
course_id
,
assignment_id
,
version
):
"""
Calculate and transmit the score for a composite module (such as a
...
...
lms/djangoapps/lti_provider/tests/test_outcomes.py
View file @
dbfa6daf
...
...
@@ -14,25 +14,10 @@ from student.tests.factories import UserFactory
from
lti_provider.models
import
GradedAssignment
,
LtiConsumer
,
OutcomeService
import
lti_provider.outcomes
as
outcomes
<<<<<<<
HEAD
import
lti_provider.tasks
as
tasks
=======
from
opaque_keys.edx.locator
import
CourseLocator
,
BlockUsageLocator
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
ItemFactory
,
CourseFactory
,
check_mongo_calls
def
create_score
(
earned
,
possible
):
"""
Create a new mock Score object with specified earned and possible values
"""
score
=
MagicMock
()
score
.
possible
=
possible
score
.
earned
=
earned
return
score
>>>>>>>
edx
/
master
class
StoreOutcomeParametersTest
(
TestCase
):
"""
Tests for the store_outcome_parameters method in outcomes.py
...
...
@@ -310,7 +295,6 @@ class XmlHandlingTest(TestCase):
self
.
assertFalse
(
outcomes
.
check_replace_result_response
(
response
))
<<<<<<<
HEAD
class
TestBodyHashClient
(
unittest
.
TestCase
):
"""
Test our custom BodyHashClient
...
...
@@ -350,7 +334,8 @@ class TestBodyHashClient(unittest.TestCase):
]
for
oauth_header
in
expected_oauth_headers
:
self
.
assertIn
(
oauth_header
,
prepped_req
.
headers
[
'Authorization'
])
=======
class
TestAssignmentsForProblem
(
ModuleStoreTestCase
):
"""
Test cases for the assignments_for_problem method in outcomes.py
...
...
@@ -471,4 +456,3 @@ class TestAssignmentsForProblem(ModuleStoreTestCase):
self
.
assertEqual
(
assignments
[
1
]
.
lis_result_sourcedid
,
'graded_unit2'
)
self
.
assertEqual
(
assignments
[
0
]
.
outcome_service
,
self
.
outcome_service
)
self
.
assertEqual
(
assignments
[
1
]
.
outcome_service
,
other_outcome_service
)
>>>>>>>
edx
/
master
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