diff --git a/tests/unit/adaptors/graph/test_chains.py b/tests/unit/adaptors/graph/test_chains.py index a8db901c..86efb6e7 100644 --- a/tests/unit/adaptors/graph/test_chains.py +++ b/tests/unit/adaptors/graph/test_chains.py @@ -169,13 +169,7 @@ def test_demonstrate_nondeterminism_of_equal_chains(self): class TestFindShortestChains: - @pytest.mark.parametrize( - "as_packages", - ( - (False), - (True), - ), - ) + @pytest.mark.parametrize("as_packages", (False, True)) def test_top_level_import(self, as_packages: bool): graph = ImportGraph() graph.add_import(importer="green", imported="blue") @@ -205,13 +199,7 @@ def test_first_level_child_import(self, as_packages: bool, expected_result: Set[ assert result == expected_result - @pytest.mark.parametrize( - "as_packages", - ( - (False), - (True), - ), - ) + @pytest.mark.parametrize("as_packages", (False, True)) def test_no_results_in_reverse_direction(self, as_packages: bool): graph = ImportGraph() graph.add_module("green") @@ -432,10 +420,7 @@ def test_chains_that_reenter_imported_package_dont_stop_longer_chains_being_incl ), } - @pytest.mark.parametrize( - "as_packages", - (False, True), - ) + @pytest.mark.parametrize("as_packages", (False, True)) def test_doesnt_lose_import_details(self, as_packages: bool): # Find shortest chains uses hiding mechanisms, this checks that it doesn't # inadvertently delete import details for the things it hides. @@ -460,10 +445,7 @@ def test_doesnt_lose_import_details(self, as_packages: bool): } ] - @pytest.mark.parametrize( - "as_packages", - (False, True), - ) + @pytest.mark.parametrize("as_packages", (False, True)) def test_doesnt_change_import_count(self, as_packages: bool): # Find shortest chains uses hiding mechanisms, this checks that it doesn't # inadvertently change the import count.