Skip to content

Commit

Permalink
Condense params
Browse files Browse the repository at this point in the history
  • Loading branch information
seddonym committed Sep 11, 2024
1 parent 6e31ce2 commit ce684ee
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions tests/unit/adaptors/graph/test_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit ce684ee

Please sign in to comment.