Bug in API: filter TestListInstances by UnitTestCollection

Issue #515 resolved
Vincent Leduc created an issue

Hi Randle,

I came across this in api/qa/filter.py :

class TestListInstanceFilter(filters.FilterSet):

    unit_test_collection = filters.RelatedFilter(
        UnitTestCollectionFilter,
        name="unit_test_collection",
        queryset=models.UnitTestInfo.objects.all(),  # <- should be models.UnitTestCollection.objects.all()?
    )

Indeed, the filter for UnitTestCollections in the page at api/qa/testlistinstances/ proposes UnitTestInfos in the dropdown

Comments (2)

  1. Log in to comment