33"""
44from unittest .mock import Mock , patch
55from urllib .parse import parse_qs , urlparse
6- import ddt
76
7+ import ddt
88from Cryptodome .PublicKey import RSA
99from django .test .testcases import TestCase
1010from edx_django_utils .cache import get_cache_key
1111
1212from lti_consumer .api import (
1313 _get_config_by_config_id ,
14- get_or_create_local_lti_config ,
1514 config_id_for_block ,
15+ get_deep_linking_data ,
1616 get_end_assessment_return ,
1717 get_lti_1p3_content_url ,
18- get_deep_linking_data ,
1918 get_lti_1p3_launch_info ,
2019 get_lti_1p3_launch_start_url ,
20+ get_or_create_local_lti_config ,
2121 validate_lti_1p3_launch_data ,
2222)
2323from lti_consumer .data import Lti1p3LaunchData , Lti1p3ProctoringLaunchData
@@ -129,7 +129,7 @@ def test_store_types(self, mapping_pair, mock_external_config):
129129
130130
131131@ddt .ddt
132- class TestGetOrCreateLocalLtiConfiguration (TestCase ):
132+ class TestGetOrCreateLocalLtiConfiguration (Lti1P3TestCase ):
133133 """
134134 Unit tests for _get_or_create_local_lti_config API method.
135135 """
@@ -146,7 +146,7 @@ def test_create_lti_config_if_inexistent(self):
146146 # Call API
147147 lti_config = get_or_create_local_lti_config (
148148 lti_version = lti_version ,
149- block_location = location
149+ block = self . xblock
150150 )
151151
152152 # Check if the object was created
0 commit comments