From ff4a4a54433498d4c0e9b8421d95ef057c1a128c Mon Sep 17 00:00:00 2001 From: tdruez Date: Fri, 30 Aug 2024 18:47:38 +0400 Subject: [PATCH] Fix failing tests #95 Signed-off-by: tdruez --- product_portfolio/filters.py | 2 -- product_portfolio/tests/test_views.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/product_portfolio/filters.py b/product_portfolio/filters.py index b84f6236..4cfe81de 100644 --- a/product_portfolio/filters.py +++ b/product_portfolio/filters.py @@ -164,8 +164,6 @@ def filter_object_type(queryset, name, value): return queryset.none() def __init__(self, *args, **kwargs): - self.anchor = kwargs.pop("anchor", None) - super().__init__(*args, **kwargs) self.filters["review_status"].extra["to_field_name"] = "label" diff --git a/product_portfolio/tests/test_views.py b/product_portfolio/tests/test_views.py index 03c120e3..ab0d13a9 100644 --- a/product_portfolio/tests/test_views.py +++ b/product_portfolio/tests/test_views.py @@ -409,6 +409,7 @@ def test_product_portfolio_detail_view_review_status_filter_in_inventory_tab(sel self.assertContains(response, component2.name) self.assertContains(response, self.package1.filename) + # All self.assertContains( response, 'All',