Skip to content

Commit

Permalink
Python Requirements Update (#33695)
Browse files Browse the repository at this point in the history
* chore: Updating Python Requirements
* fix: fix completion test query count
---------

Co-authored-by: UsamaSadiq <usama7274@gmail.com>
  • Loading branch information
edx-requirements-bot and UsamaSadiq authored Nov 13, 2023
1 parent 893157d commit e46c1d1
Show file tree
Hide file tree
Showing 13 changed files with 394 additions and 311 deletions.
4 changes: 2 additions & 2 deletions openedx/tests/completion_integration/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def setUp(self):
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,
Expand All @@ -75,7 +75,7 @@ def test_changed_value(self):
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,
Expand Down
4 changes: 0 additions & 4 deletions requirements/common_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ Django<4.0
elasticsearch<7.14.0

# django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected

# tox>4.0.0 isn't yet compatible with many tox plugins, causing CI failures in almost all repos.
# Details can be found in this discussion: https://github.com/tox-dev/tox/discussions/1810
tox<4.0.0
4 changes: 2 additions & 2 deletions requirements/edx-sandbox/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ cryptography==38.0.4
# -r requirements/edx-sandbox/py38.in
cycler==0.12.1
# via matplotlib
fonttools==4.43.1
fonttools==4.44.0
# via matplotlib
importlib-resources==6.1.0
importlib-resources==6.1.1
# via matplotlib
joblib==1.3.2
# via nltk
Expand Down
Loading

0 comments on commit e46c1d1

Please sign in to comment.