django-notifications/notifications/tests/test_admin.py

14 lines
383 B
Python
Raw Normal View History

2024-04-20 00:37:39 +00:00
from django.urls import reverse
from notifications.tests.factories.notifications import NotificationFullFactory
def test_admin(admin_user, client):
app_name = "notifications"
NotificationFullFactory.create_batch(10)
client.force_login(admin_user)
response = client.get(reverse(f"admin:{app_name}_notification_changelist"))
assert response.status_code == 200