mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Fix up flake8 for notification tests
This commit is contained in:
@@ -117,8 +117,8 @@ def test_notification_template_invalid_notification_type(patch, notification_tem
|
|||||||
def test_disallow_delete_when_notifications_pending(delete, user, notification_template):
|
def test_disallow_delete_when_notifications_pending(delete, user, notification_template):
|
||||||
u = user('superuser', True)
|
u = user('superuser', True)
|
||||||
url = reverse('api:notification_template_detail', args=(notification_template.id,))
|
url = reverse('api:notification_template_detail', args=(notification_template.id,))
|
||||||
n = Notification.objects.create(notification_template=notification_template,
|
Notification.objects.create(notification_template=notification_template,
|
||||||
status='pending')
|
status='pending')
|
||||||
response = delete(url, user=u)
|
response = delete(url, user=u)
|
||||||
assert response.status_code == 405
|
assert response.status_code == 405
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user