From 8d1c68c3f1b97fecf4f9e87dbb23f2d7b30e7d1d Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 21 Nov 2026 11:16:52 +0000 Subject: [PATCH] test(ci): run the reach tests as unittest TestCases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TestTestFilesContainUnittestTests counts only classes that inherit unittest.TestCase directly. TestRuns, TestNetworks and TestRounds inherited it through _Fixture, so test-lint failed on the pull request run 44825789102 with test_reach.py "do not define any unittest-runnable tests". _Fixture becomes a mixin and each test class inherits (_Fixture, unittest.TestCase). 🎯 Fix: 95 % 💥 Break: 2 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 93 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- .../cli/meta/roles/applications/complexity/test_reach.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/python/cli/meta/roles/applications/complexity/test_reach.py b/tests/unit/python/cli/meta/roles/applications/complexity/test_reach.py index 97795d7feb..92a6fbdefd 100644 --- a/tests/unit/python/cli/meta/roles/applications/complexity/test_reach.py +++ b/tests/unit/python/cli/meta/roles/applications/complexity/test_reach.py @@ -49,7 +49,7 @@ def _prune( ) -class _Fixture(unittest.TestCase): +class _Fixture: def setUp(self) -> None: caches = (reach._round_of, reach._networks, reach._runs) for fn in caches: @@ -86,7 +86,7 @@ class _Fixture(unittest.TestCase): self.addCleanup(patch.stop) -class TestRuns(_Fixture): +class TestRuns(_Fixture, unittest.TestCase): def test_a_network_without_disable_runs_the_whole_round(self) -> None: self.assertEqual( reach._runs("roles", APP, 3, frozenset({"multi"})), @@ -107,7 +107,7 @@ class TestRuns(_Fixture): ) -class TestNetworks(_Fixture): +class TestNetworks(_Fixture, unittest.TestCase): def test_the_networks_are_those_of_every_tested_mode(self) -> None: self.assertEqual( reach._networks("roles", APP, 0, frozenset({"compose", "swarm"})), @@ -122,7 +122,7 @@ class TestNetworks(_Fixture): self.assertTrue(self.row_states.call_args.kwargs["pulls_tor"]) -class TestRounds(_Fixture): +class TestRounds(_Fixture, unittest.TestCase): def test_the_modes_are_the_tested_ones(self) -> None: row = SimpleNamespace( name=APP, variant=None, test_compose=True, test_swarm=False, test_host=True