Skip to content

Commit

Permalink
Task/wp 209 fix deprecated warnings (part II) (#852)
Browse files Browse the repository at this point in the history
* urls and gettext_lazy

* server-side linting fix

* task/wp-171-fix-deprecated-django-warnings

* task/wp-209-fix-deprecated-warnings

* removed commented out code

* Update signals.py

* Update pytest.ini

---------

Co-authored-by: Shayan Khan <[email protected]>
Co-authored-by: Chandra Y <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2023
1 parent 574a567 commit 9caf6a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions server/portal/apps/signals/signals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.dispatch import Signal

# Generic event signal. Not in use as of 6.29.20
portal_event = Signal(providing_args=['event_type', 'event_data', 'event_users'])
portal_event = Signal()
14 changes: 14 additions & 0 deletions server/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
[pytest]
DJANGO_SETTINGS_MODULE = portal.settings.unit_test_settings
python_files = tests.py *unit_test.py

filterwarnings =
ignore::DeprecationWarning:django.*:
ignore::DeprecationWarning:openapi_schema_validator.*:
ignore::DeprecationWarning:openapi_spec_validator.*:
ignore::DeprecationWarning:openapi_core.*:
ignore::DeprecationWarning:kombu.*:
ignore::DeprecationWarning:pkg_resources.*:
ignore:.*Django now detects this configuration.*:django.utils.deprecation.RemovedInDjango41Warning

markers =
asyncio: mark a test as asyncio.

# refer to WP-271 for follow up on Deprecation Warnings

0 comments on commit 9caf6a8

Please sign in to comment.