Skip to content

Commit 78ab209

Browse files
committed
[deps] Upgraded openwips-utils~=0.7.0, openwisp-utils~=0.5.0
- Redirected noisy test output using utilities from openwisp-utils
1 parent a50aeeb commit 78ab209

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

openwisp_notifications/tests/test_api.py

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919
from openwisp_users.tests.test_api import AuthenticationMixin
2020
from openwisp_users.tests.utils import TestOrganizationMixin
21+
from openwisp_utils.tests import capture_any_output
2122

2223
Notification = load_model('Notification')
2324
NotificationSetting = load_model('NotificationSetting')
@@ -421,6 +422,7 @@ def test_list_view_notification_cache(self):
421422
self.assertEqual(response.status_code, 200)
422423
self.assertEqual(response.data['count'], number_of_notifications)
423424

425+
@capture_any_output()
424426
def test_malformed_notifications(self):
425427
test_type = {
426428
'verbose_name': 'Test Notification Type',
@@ -455,6 +457,7 @@ def test_malformed_notifications(self):
455457

456458
unregister_notification_type('test_type')
457459

460+
@capture_any_output()
458461
@patch('openwisp_notifications.tasks.delete_obsolete_objects.delay')
459462
def test_obsolete_notifications_busy_worker(self, mocked_task):
460463
"""

openwisp_notifications/tests/test_notifications.py

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
)
3232
from openwisp_notifications.utils import _get_absolute_url
3333
from openwisp_users.tests.utils import TestOrganizationMixin
34+
from openwisp_utils.tests import capture_any_output
3435

3536
User = get_user_model()
3637

@@ -523,6 +524,7 @@ def test_missing_relation_object(self):
523524

524525
unregister_notification_type('test_type')
525526

527+
@capture_any_output()
526528
def test_notification_invalid_message_attribute(self):
527529
self.notification_options.update({'type': 'test_type'})
528530
test_type = {

requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
coveralls~=2.1.0
22
django-redis~=4.12.1
33
django-cors-headers~=3.5.0
4-
openwisp-utils[qa]~=0.6.0
4+
openwisp-utils[qa]~=0.7.0
55
redis~=3.5.3
66
channels_redis~=3.1.0
77
pytest-asyncio~=0.14.0

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
django-notifications-hq~=1.6.0
22
channels~=2.4.0
3-
openwisp-users~=0.4.0
4-
openwisp-utils[rest]~=0.6.0
3+
openwisp-users~=0.5.0
4+
openwisp-utils[rest]~=0.7.0
55
swapper~=1.1.0
66
markdown~=3.2.0
77
celery~=4.4.0

0 commit comments

Comments
 (0)