mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
update a janky old test
UJT list views don't work this way anymore after a929e82060121371423ced061b10758c905d29cc
This commit is contained in:
parent
e9f1f8c6fe
commit
662ee6fa36
@ -282,10 +282,6 @@ def test_prefetch_ujt_project_capabilities(alice, project, job_template, mocker)
|
||||
list_serializer.child.to_representation(project)
|
||||
assert 'capability_map' not in list_serializer.child.context
|
||||
|
||||
# Models for which the prefetch is valid for do
|
||||
list_serializer.child.to_representation(job_template)
|
||||
assert set(list_serializer.child.context['capability_map'][job_template.id].keys()) == set(('copy', 'edit', 'start'))
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_prefetch_group_capabilities(group, rando):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user