update a janky old test

UJT list views don't work this way anymore after
a929e82060121371423ced061b10758c905d29cc
This commit is contained in:
Ryan Petrello 2020-11-05 12:29:06 -05:00
parent e9f1f8c6fe
commit 662ee6fa36
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -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):