Skip to content

Commit 00d1c4c

Browse files
committed
temp: adjust query count
1 parent 1393a4e commit 00d1c4c

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
name: ${{ matrix.shard_name }}(py=${{ matrix.python-version }},dj=${{ matrix.django-version }},mongo=${{ matrix.mongo-version }})
2121
runs-on: ${{ matrix.os-version }}
2222
strategy:
23-
fail-fast: false # Temporarily doing this so I can find all the query-count failures at one times
2423
matrix:
2524
python-version:
2625
- "3.11"

lms/djangoapps/course_api/blocks/transformers/tests/test_milestones.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def test_gated(self, gated_block_ref, gating_block_ref, expected_blocks_before_c
171171
# get data back. This would happen as a part of publishing in a production system.
172172
bs_api.update_course_in_cache(self.course.id)
173173

174-
with self.assertNumQueries(4):
174+
with self.assertNumQueries(5):
175175
self.get_blocks_and_check_against_expected(self.user, expected_blocks_before_completion)
176176

177177
# clear the request cache to simulate a new request

lms/djangoapps/grades/tests/test_course_grade_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def test_grading_exception(self, mock_course_grade):
289289
else mock_course_grade.return_value
290290
for student in self.students
291291
]
292-
with self.assertNumQueries(20):
292+
with self.assertNumQueries(21):
293293
all_course_grades, all_errors = self._course_grades_and_errors_for(self.course, self.students)
294294
assert {student: str(all_errors[student]) for student in all_errors} == {
295295
student3: 'Error for student3.',

0 commit comments

Comments
 (0)