Notifications Tests¶
- class tests.notifications.factories.CommentNotificationFactory(**kwargs)[source]¶
Bases:
NotificationFactory- type = 'comment'¶
- class tests.notifications.factories.FollowNotificationFactory(**kwargs)[source]¶
Bases:
NotificationFactory- type = 'follow'¶
- class tests.notifications.factories.LikeNotificationFactory(**kwargs)[source]¶
Bases:
NotificationFactory- type = 'like'¶
- class tests.notifications.factories.NotificationFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- post = <factory.declarations.SubFactory object>¶
- receiver = <factory.declarations.SubFactory object>¶
- sender = <factory.declarations.SubFactory object>¶
- class tests.notifications.test_service.TestNotificationService(methodName='runTest')[source]¶
Bases:
TestCaseTest notification service
- class tests.notifications.test_views.TestNotificationAPIView(methodName='runTest')[source]¶
Bases:
APITestCaseTest Notification api view