mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Fix up flake8 for notification tests
This commit is contained in:
parent
6bc025c86f
commit
80b044580d
@ -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):
|
||||
u = user('superuser', True)
|
||||
url = reverse('api:notification_template_detail', args=(notification_template.id,))
|
||||
n = Notification.objects.create(notification_template=notification_template,
|
||||
status='pending')
|
||||
Notification.objects.create(notification_template=notification_template,
|
||||
status='pending')
|
||||
response = delete(url, user=u)
|
||||
assert response.status_code == 405
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user