Python Requirements Update (#33695)
* chore: Updating Python Requirements * fix: fix completion test query count --------- Co-authored-by: UsamaSadiq <usama7274@gmail.com>
This commit is contained in:
committed by
GitHub
parent
893157db8c
commit
e46c1d1e61
@@ -62,7 +62,7 @@ class SubmitCompletionTestCase(CompletionSetUpMixin, TestCase):
|
||||
self.set_up_completion()
|
||||
|
||||
def test_changed_value(self):
|
||||
with self.assertNumQueries(SELECT + UPDATE + 2 * SAVEPOINT + 2 * OTHER):
|
||||
with self.assertNumQueries(2 * SELECT + UPDATE + 2 * SAVEPOINT + 2 * OTHER):
|
||||
# OTHER = user exists, completion exists
|
||||
completion, isnew = models.BlockCompletion.objects.submit_completion(
|
||||
user=self.user,
|
||||
@@ -75,7 +75,7 @@ class SubmitCompletionTestCase(CompletionSetUpMixin, TestCase):
|
||||
assert models.BlockCompletion.objects.count() == 1
|
||||
|
||||
def test_unchanged_value(self):
|
||||
with self.assertNumQueries(SELECT + 2 * SAVEPOINT):
|
||||
with self.assertNumQueries(2 * SELECT + 2 * SAVEPOINT):
|
||||
completion, isnew = models.BlockCompletion.objects.submit_completion(
|
||||
user=self.user,
|
||||
block_key=self.block_key,
|
||||
|
||||
Reference in New Issue
Block a user