Add tests for AWX collection credential fixes (#3893)

This commit is contained in:
Alan Rominger
2019-10-28 09:58:00 -04:00
committed by Ryan Petrello
parent 6f2a07a7df
commit 98d3f3dc8a
5 changed files with 109 additions and 3 deletions

View File

@@ -117,3 +117,10 @@ def test_handle_content_type(post, admin):
admin,
content_type='text/html',
expect=415)
@pytest.mark.django_db
def test_basic_not_found(get, admin_user):
root_url = reverse('api:api_v2_root_view')
r = get(root_url + 'fooooooo', user=admin_user, expect=404)
assert r.data.get('detail') == 'The requested resource could not be found.'