mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -03:30
fix def application test
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from awx.api.versioning import reverse
|
from awx.api.versioning import reverse
|
||||||
from awx.main.models import User
|
|
||||||
from awx.main.models.oauth import OAuth2Application as Application
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -25,11 +23,6 @@ def test_user_create(post, admin):
|
|||||||
assert response.status_code == 201
|
assert response.status_code == 201
|
||||||
assert not response.data['is_superuser']
|
assert not response.data['is_superuser']
|
||||||
assert not response.data['is_system_auditor']
|
assert not response.data['is_system_auditor']
|
||||||
user = User.objects.get(username='affable')
|
|
||||||
assert Application.objects.filter(user=user).count() == 1
|
|
||||||
app = Application.objects.filter(user=user).first()
|
|
||||||
assert app.name == 'Default application for affable'
|
|
||||||
assert app.client_type == 'confidential'
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
|
|||||||
Reference in New Issue
Block a user