Skip to content

Commit

Permalink
Fix failing tests #95
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Aug 30, 2024
1 parent 25a8430 commit ff4a4a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions product_portfolio/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions product_portfolio/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

# <a href="?inventory-review_status=" class="dropdown-item active">All</a>
self.assertContains(
response,
'<a href="?inventory-review_status=#inventory" class="dropdown-item active">All</a>',
Expand Down

0 comments on commit ff4a4a5

Please sign in to comment.