Commit 1cd9325e by Александр

Fix LTI tests.

parent 932d13ed
...@@ -194,6 +194,7 @@ class LTIModuleTest(LogicTest): ...@@ -194,6 +194,7 @@ class LTIModuleTest(LogicTest):
Response from Tool Provider is correct. Response from Tool Provider is correct.
""" """
self.xmodule.verify_oauth_body_sign = Mock() self.xmodule.verify_oauth_body_sign = Mock()
self.xmodule.has_score = True
request = Request(self.environ) request = Request(self.environ)
request.body = self.get_request_body() request.body = self.get_request_body()
response = self.xmodule.grade_handler(request, '') response = self.xmodule.grade_handler(request, '')
......
...@@ -44,8 +44,8 @@ Feature: LMS.LTI component ...@@ -44,8 +44,8 @@ Feature: LMS.LTI component
Scenario: Graded LTI component in LMS is correctly works Scenario: Graded LTI component in LMS is correctly works
Given the course has correct LTI credentials Given the course has correct LTI credentials
And the course has an LTI component with correct fields: And the course has an LTI component with correct fields:
| open_in_a_new_page | weight | is_graded | | open_in_a_new_page | weight | is_graded | has_score |
| False | 10 | True | | False | 10 | True | True |
And I submit answer to LTI question And I submit answer to LTI question
And I click on the "Progress" tab And I click on the "Progress" tab
Then I see text "Problem Scores: 5/10" Then I see text "Problem Scores: 5/10"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment