mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Merge pull request #4666 from ryanpetrello/dont-test-me
update a janky old test
This commit is contained in:
@@ -282,10 +282,6 @@ def test_prefetch_ujt_project_capabilities(alice, project, job_template, mocker)
|
|||||||
list_serializer.child.to_representation(project)
|
list_serializer.child.to_representation(project)
|
||||||
assert 'capability_map' not in list_serializer.child.context
|
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
|
@pytest.mark.django_db
|
||||||
def test_prefetch_group_capabilities(group, rando):
|
def test_prefetch_group_capabilities(group, rando):
|
||||||
|
|||||||
Reference in New Issue
Block a user