Skip to content

Commit

Permalink
fix: fixing failed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ayesha-waris committed Jan 10, 2024
1 parent c5289fb commit f66eba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/courseware/tests/test_model_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_set_field_in_missing_student_module(self):
# on the StudentModule).
# Django 1.8 also has a number of other BEGIN and SAVESTATE queries.
with self.assertNumQueries(4, using='default'):
with self.assertNumQueries(1, using='student_module_history'):
with self.assertNumQueries(2, using='student_module_history'):
self.kvs.set(user_state_key('a_field'), 'a_value')

assert 1 == sum(len(cache) for cache in self.field_data_cache.cache.values())
Expand Down

0 comments on commit f66eba2

Please sign in to comment.