Skip to content

Commit

Permalink
Update dependencies (Amsterdam#1446)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update test expectation

* Make sure the same query is used twice in the test
  • Loading branch information
4c0n authored Apr 8, 2024
1 parent 894c7e9 commit 633e333
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 39 deletions.
18 changes: 9 additions & 9 deletions app/requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ django-cors-headers==4.3.1
# via -r requirements/requirements.in
django-extensions==3.2.3
# via -r requirements/requirements.in
django-filter==24.1
django-filter==24.2
# via -r requirements/requirements.in
django-fsm==2.8.1
# via -r requirements/requirements.in
Expand Down Expand Up @@ -156,9 +156,9 @@ drf-extensions==0.7.1
# via
# -r requirements/requirements.in
# drf-amsterdam
drf-spectacular[sidecar]==0.27.1
drf-spectacular[sidecar]==0.27.2
# via -r requirements/requirements.in
drf-spectacular-sidecar==2024.3.4
drf-spectacular-sidecar==2024.4.1
# via drf-spectacular
elasticsearch==7.17.9
# via elasticsearch-dsl
Expand Down Expand Up @@ -194,9 +194,9 @@ jsonschema-specifications==2023.12.1
# via jsonschema
jwcrypto==1.5.6
# via -r requirements/requirements.in
kombu==5.3.5
kombu==5.3.6
# via celery
lxml==5.1.0
lxml==5.2.1
# via -r requirements/requirements.in
markdown==3.6
# via django-markdownx
Expand Down Expand Up @@ -235,7 +235,7 @@ opencensus-ext-requests==0.8.0
# via -r requirements/requirements.in
packaging==24.0
# via msal-extensions
pillow==10.2.0
pillow==10.3.0
# via
# -r requirements/requirements.in
# cairosvg
Expand All @@ -260,15 +260,15 @@ psycopg2-binary==2.9.9
# via
# -r requirements/requirements.in
# opencensus-ext-postgresql
pyasn1==0.5.1
pyasn1==0.6.0
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.3.0
pyasn1-modules==0.4.0
# via google-auth
pycodestyle==2.11.1
# via autopep8
pycparser==2.21
pycparser==2.22
# via cffi
pyjwt[crypto]==2.8.0
# via msal
Expand Down
27 changes: 13 additions & 14 deletions app/requirements/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ django-debug-toolbar==4.3.0
# via -r requirements/requirements_dev.in
django-extensions==3.2.3
# via -r requirements/requirements_test.txt
django-filter==24.1
django-filter==24.2
# via -r requirements/requirements_test.txt
django-filter-stubs==0.1.3
# via -r requirements/requirements_test.txt
Expand Down Expand Up @@ -238,9 +238,9 @@ drf-extensions==0.7.1
# via
# -r requirements/requirements_test.txt
# drf-amsterdam
drf-spectacular[sidecar]==0.27.1
drf-spectacular[sidecar]==0.27.2
# via -r requirements/requirements_test.txt
drf-spectacular-sidecar==2024.3.4
drf-spectacular-sidecar==2024.4.1
# via
# -r requirements/requirements_test.txt
# drf-spectacular
Expand Down Expand Up @@ -329,11 +329,11 @@ jsonschema-specifications==2023.12.1
# jsonschema
jwcrypto==1.5.6
# via -r requirements/requirements_test.txt
kombu==5.3.5
kombu==5.3.6
# via
# -r requirements/requirements_test.txt
# celery
lxml==5.1.0
lxml==5.2.1
# via
# -r requirements/requirements_test.txt
# xmlunittest
Expand Down Expand Up @@ -430,7 +430,7 @@ parse-type==0.6.2
# via
# -r requirements/requirements_test.txt
# pytest-bdd
pillow==10.2.0
pillow==10.3.0
# via
# -r requirements/requirements_test.txt
# cairosvg
Expand Down Expand Up @@ -476,12 +476,12 @@ psycopg2-binary==2.9.9
# via
# -r requirements/requirements_test.txt
# opencensus-ext-postgresql
pyasn1==0.5.1
pyasn1==0.6.0
# via
# -r requirements/requirements_test.txt
# pyasn1-modules
# rsa
pyasn1-modules==0.3.0
pyasn1-modules==0.4.0
# via
# -r requirements/requirements_test.txt
# google-auth
Expand All @@ -490,7 +490,7 @@ pycodestyle==2.11.1
# -r requirements/requirements_test.txt
# autopep8
# flake8
pycparser==2.21
pycparser==2.22
# via
# -r requirements/requirements_test.txt
# cffi
Expand Down Expand Up @@ -580,7 +580,7 @@ requests==2.31.0
# opencensus-ext-requests
# requests-mock
# requests-oauthlib
requests-mock==1.11.0
requests-mock==1.12.1
# via -r requirements/requirements_test.txt
requests-oauthlib==2.0.0
# via
Expand All @@ -605,7 +605,6 @@ six==1.16.0
# opencensus
# parse-type
# python-dateutil
# requests-mock
soupsieve==2.5
# via
# -r requirements/requirements_test.txt
Expand Down Expand Up @@ -638,7 +637,7 @@ types-beautifulsoup4==4.12.0.20240229
# via -r requirements/requirements_test.txt
types-cryptography==3.3.23.2
# via -r requirements/requirements_test.txt
types-docutils==0.20.0.20240317
types-docutils==0.20.0.20240331
# via
# -r requirements/requirements_test.txt
# types-pygments
Expand All @@ -648,11 +647,11 @@ types-html5lib==1.1.11.20240228
# via
# -r requirements/requirements_test.txt
# types-beautifulsoup4
types-jsonschema==4.21.0.20240311
types-jsonschema==4.21.0.20240331
# via -r requirements/requirements_test.txt
types-markdown==3.6.0.20240316
# via -r requirements/requirements_test.txt
types-pillow==10.2.0.20240324
types-pillow==10.2.0.20240331
# via -r requirements/requirements_test.txt
types-psycopg2==2.9.21.20240311
# via -r requirements/requirements_test.txt
Expand Down
27 changes: 13 additions & 14 deletions app/requirements/requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ django-cors-headers==4.3.1
# via -r requirements/requirements.txt
django-extensions==3.2.3
# via -r requirements/requirements.txt
django-filter==24.1
django-filter==24.2
# via -r requirements/requirements.txt
django-filter-stubs==0.1.3
# via -r requirements/requirements_test.in
Expand Down Expand Up @@ -225,9 +225,9 @@ drf-extensions==0.7.1
# via
# -r requirements/requirements.txt
# drf-amsterdam
drf-spectacular[sidecar]==0.27.1
drf-spectacular[sidecar]==0.27.2
# via -r requirements/requirements.txt
drf-spectacular-sidecar==2024.3.4
drf-spectacular-sidecar==2024.4.1
# via
# -r requirements/requirements.txt
# drf-spectacular
Expand Down Expand Up @@ -309,11 +309,11 @@ jsonschema-specifications==2023.12.1
# jsonschema
jwcrypto==1.5.6
# via -r requirements/requirements.txt
kombu==5.3.5
kombu==5.3.6
# via
# -r requirements/requirements.txt
# celery
lxml==5.1.0
lxml==5.2.1
# via
# -r requirements/requirements.txt
# xmlunittest
Expand Down Expand Up @@ -399,7 +399,7 @@ parse==1.20.1
# pytest-bdd
parse-type==0.6.2
# via pytest-bdd
pillow==10.2.0
pillow==10.3.0
# via
# -r requirements/requirements.txt
# cairosvg
Expand Down Expand Up @@ -443,12 +443,12 @@ psycopg2-binary==2.9.9
# via
# -r requirements/requirements.txt
# opencensus-ext-postgresql
pyasn1==0.5.1
pyasn1==0.6.0
# via
# -r requirements/requirements.txt
# pyasn1-modules
# rsa
pyasn1-modules==0.3.0
pyasn1-modules==0.4.0
# via
# -r requirements/requirements.txt
# google-auth
Expand All @@ -457,7 +457,7 @@ pycodestyle==2.11.1
# -r requirements/requirements.txt
# autopep8
# flake8
pycparser==2.21
pycparser==2.22
# via
# -r requirements/requirements.txt
# cffi
Expand Down Expand Up @@ -543,7 +543,7 @@ requests==2.31.0
# opencensus-ext-requests
# requests-mock
# requests-oauthlib
requests-mock==1.11.0
requests-mock==1.12.1
# via -r requirements/requirements_test.in
requests-oauthlib==2.0.0
# via
Expand All @@ -568,7 +568,6 @@ six==1.16.0
# opencensus
# parse-type
# python-dateutil
# requests-mock
soupsieve==2.5
# via
# -r requirements/requirements.txt
Expand Down Expand Up @@ -600,17 +599,17 @@ types-beautifulsoup4==4.12.0.20240229
# via -r requirements/requirements_test.in
types-cryptography==3.3.23.2
# via -r requirements/requirements_test.in
types-docutils==0.20.0.20240317
types-docutils==0.20.0.20240331
# via types-pygments
types-factory-boy==0.4.1
# via -r requirements/requirements_test.in
types-html5lib==1.1.11.20240228
# via types-beautifulsoup4
types-jsonschema==4.21.0.20240311
types-jsonschema==4.21.0.20240331
# via -r requirements/requirements_test.in
types-markdown==3.6.0.20240316
# via -r requirements/requirements_test.in
types-pillow==10.2.0.20240324
types-pillow==10.2.0.20240331
# via -r requirements/requirements_test.in
types-psycopg2==2.9.21.20240311
# via -r requirements/requirements_test.in
Expand Down
5 changes: 3 additions & 2 deletions app/signals/apps/api/tests/test_private_signal_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,12 @@ def test_geo_list_endpoint_queries(self):
self.assertEqual(response['X-Total-Count'], '10')

# Confirm pagination is done in DB and not in Python
self.assertIn('LIMIT 2 OFFSET 2', connection.queries[10]['sql'])
query = connection.queries[3]['sql']
self.assertIn('LIMIT 2 OFFSET 2', query)

# Check the full set of Signals is not retrieved
with connection.cursor() as cursor:
cursor.execute(connection.queries[10]['sql'])
cursor.execute(query)
retrieved = cursor.fetchall()
self.assertNotEqual(len(retrieved), Signal.objects.count())

Expand Down

0 comments on commit 633e333

Please sign in to comment.