mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
allow UJT content type list to come from cache
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
import pytest
|
||||
|
||||
# Django
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
|
||||
# AWX
|
||||
from awx.main.models import UnifiedJobTemplate, JobTemplate, WorkflowJobTemplate, Project
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_subclass_types(rando):
|
||||
assert set(UnifiedJobTemplate._submodels_with_roles()) == set([
|
||||
ContentType.objects.get_for_model(JobTemplate).id,
|
||||
ContentType.objects.get_for_model(Project).id,
|
||||
ContentType.objects.get_for_model(WorkflowJobTemplate).id
|
||||
])
|
||||
|
||||
|
||||
class TestCreateUnifiedJob:
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user