File tree 4 files changed +8
-3
lines changed
openwisp_notifications/tests
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 18
18
)
19
19
from openwisp_users .tests .test_api import AuthenticationMixin
20
20
from openwisp_users .tests .utils import TestOrganizationMixin
21
+ from openwisp_utils .tests import capture_any_output
21
22
22
23
Notification = load_model ('Notification' )
23
24
NotificationSetting = load_model ('NotificationSetting' )
@@ -421,6 +422,7 @@ def test_list_view_notification_cache(self):
421
422
self .assertEqual (response .status_code , 200 )
422
423
self .assertEqual (response .data ['count' ], number_of_notifications )
423
424
425
+ @capture_any_output ()
424
426
def test_malformed_notifications (self ):
425
427
test_type = {
426
428
'verbose_name' : 'Test Notification Type' ,
@@ -455,6 +457,7 @@ def test_malformed_notifications(self):
455
457
456
458
unregister_notification_type ('test_type' )
457
459
460
+ @capture_any_output ()
458
461
@patch ('openwisp_notifications.tasks.delete_obsolete_objects.delay' )
459
462
def test_obsolete_notifications_busy_worker (self , mocked_task ):
460
463
"""
Original file line number Diff line number Diff line change 31
31
)
32
32
from openwisp_notifications .utils import _get_absolute_url
33
33
from openwisp_users .tests .utils import TestOrganizationMixin
34
+ from openwisp_utils .tests import capture_any_output
34
35
35
36
User = get_user_model ()
36
37
@@ -523,6 +524,7 @@ def test_missing_relation_object(self):
523
524
524
525
unregister_notification_type ('test_type' )
525
526
527
+ @capture_any_output ()
526
528
def test_notification_invalid_message_attribute (self ):
527
529
self .notification_options .update ({'type' : 'test_type' })
528
530
test_type = {
Original file line number Diff line number Diff line change 1
1
coveralls~=2.1.0
2
2
django-redis~=4.12.1
3
3
django-cors-headers~=3.5.0
4
- openwisp-utils[qa]~=0.6 .0
4
+ openwisp-utils[qa]~=0.7 .0
5
5
redis~=3.5.3
6
6
channels_redis~=3.1.0
7
7
pytest-asyncio~=0.14.0
Original file line number Diff line number Diff line change 1
1
django-notifications-hq ~= 1.6.0
2
2
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
5
5
swapper ~= 1.1.0
6
6
markdown ~= 3.2.0
7
7
celery ~= 4.4.0
You can’t perform that action at this time.
0 commit comments