Skip to content

Commit 89de3e5

Browse files
committed
fix failing tests
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent ffd6baa commit 89de3e5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

dje/tests/test_permissions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def test_permissions_get_all_tabsets(self):
133133
],
134134
"product": [
135135
"essentials",
136+
"compliance",
136137
"inventory",
137138
"codebase",
138139
"hierarchy",

product_portfolio/tests/test_views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_product_portfolio_detail_view_tab_inventory_and_hierarchy_availability(
134134
ProductComponent.objects.create(
135135
product=self.product1, component=self.component1, dataspace=self.dataspace
136136
)
137-
with self.assertNumQueries(30):
137+
with self.assertNumQueries(29):
138138
response = self.client.get(url)
139139
self.assertContains(response, expected1)
140140
self.assertContains(response, expected2)
@@ -464,6 +464,7 @@ def test_product_portfolio_detail_view_tab_vulnerability_label(self, mock_is_con
464464

465465
self.dataspace.enable_vulnerablecodedb_access = True
466466
self.dataspace.save()
467+
make_product_package(self.product1)
467468
response = self.client.get(url)
468469
expected = 'aria-controls="tab_vulnerabilities" aria-selected="false" disabled="disabled"'
469470
self.assertContains(response, expected)

0 commit comments

Comments
 (0)