Skip to content

Commit

Permalink
test: remove testing for deprecation warning...
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Jan 16, 2025
1 parent c8ff9fe commit b6ab3e5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/units/result_manager/test__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_json(self, list_result_factory: Callable[[int], list[TestResult]]) -> N
assert test.get("custom_field") is None
assert test.get("result") == "success"

def test_sorted_category_stats(self, list_result_factory: Callable[[int], list[TestResult]]) -> None:
"""Test ResultManager.sorted_category_stats."""
def test_category_stats(self, list_result_factory: Callable[[int], list[TestResult]]) -> None:
"""Test ResultManager.category_stats."""
result_manager = ResultManager()
results = list_result_factory(4)

Expand All @@ -91,11 +91,6 @@ def test_sorted_category_stats(self, list_result_factory: Callable[[int], list[T
expected_order = ["bgp", "ospf", "system", "vxlan"]
assert list(result_manager.category_stats.keys()) == expected_order

# Verify deprecation warning for sorted_category_stats
with pytest.warns(DeprecationWarning, match="sorted_category_stats is deprecated and will be removed in ANTA v2.0.0"):
deprecated_stats = result_manager.sorted_category_stats
assert list(deprecated_stats.keys()) == expected_order

@pytest.mark.parametrize(
("starting_status", "test_status", "expected_status", "expected_raise"),
[
Expand Down

0 comments on commit b6ab3e5

Please sign in to comment.