-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Allow tests for Extracted & Builtin LTI XBlock #36020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
ba481cd to
8343717
Compare
d132ef3 to
eaf2743
Compare
8a886fd to
48be2e4
Compare
cf6d9cc to
995261a
Compare
|
@kdmccormick With the flag ( I'm sharing the output diff here. Please take a look, and guide me what could be the possible way-outs. |
f5560d2 to
efc6cb7
Compare
Note: I don't have technical depth of the mongo calls working, it needs to be explored |
|
@farhan
Seems like this is causing the issue. Let me try things around first, and IMO decreasing the count by 1 in the test case (inside |
373aa3e to
58f8e54
Compare
324c681 to
9c4c049
Compare
9c4c049 to
b5f2551
Compare
4164531 to
b2ffa96
Compare
dc60155 to
b17047f
Compare
a44d7b8 to
5f4531c
Compare
3b23988 to
bb41e8d
Compare
|
|
||
|
|
||
| @override_settings(USE_EXTRACTED_LTI_BLOCK=True) | ||
| class TestLTIBlockListingExtracted(_TestLTIBlockListing): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_TestLTIBlockListingBase could be better name to represent the base class.
|
|
||
| class LTI20RESTResultServiceTest(unittest.TestCase): | ||
| from xmodule.lti_2_util import LTIError as BuiltInLTIError | ||
| from xblocks_contrib.lti.lti_2_util import LTIError as ExtractedLTIError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to have a reset_class method in lti_2_util.py class which return the builtin or extracted LTIError just like we are doing in lti_block.py
edx-platform/xmodule/lti_block.py
Line 998 in bb41e8d
| def reset_class(): |
i think in this way if we have to filter for LTIError we would have one single import and one place from where it would come as per flag setting.
bb41e8d to
0f2c8c6
Compare
|
Hi @ttqureshi! Is this pull request still in progress? |
|
@mphilbrick211 |
0f2c8c6 to
4193626
Compare
4193626 to
c6d0b64
Compare
c6d0b64 to
80773ab
Compare
Test the LTI XBlock in both built-in and extracted modes to keep them in sync.
Related to: #36281