-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
Tests are running with django52 in edx-platform
You can use this PR to run tests locally. It has many commits for storages these PRs in review.
query = 'INSERT INTO "split_modulestore_django_historicalsplitmodulestorecourseindex" ("id", "objectid", "course_id", "org", "...", "history_change_reason", "history_type", "history_user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'
params = [1, '689580507db9ce7ddd79e651', 'course-v1:org.0+course_0+Run_0', 'org.0', '689580507db9ce7ddd79e650', '689580507db9ce7ddd79e653', ...]
def execute(self, query, params=None):
if params is None:
return super().execute(query)
# Extract names if params is a mapping, i.e. "pyformat" style is used.
param_names = list(params) if isinstance(params, Mapping) else None
query = self.convert_query(query, param_names=param_names)
> return super().execute(query, params)
E sqlite3.IntegrityError: UNIQUE constraint failed: split_modulestore_django_historicalsplitmodulestorecourseindex.course_id
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels