style(tests): apply the formatter to the network_served tests

The autoformat step of the gate wrapped the long assertions that
660ad2ff16 committed unformatted. No behaviour change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-10-16 21:40:19 +02:00
1 parent 53d91399ec
commit 8e7dd508c9
2 files changed
+16 -5

No files matched your search

@@ -30,13 +30,22 @@ class TestNetworkServedLookup(unittest.TestCase):
def test_a_named_role_must_be_deployed(self):
lookup = served_mod.LookupModule()
variables = {"group_names": ["svc-net-tor", "web-app-keycloak"]}
self.assertTrue(lookup.run(["clearnet", "web-app-keycloak"], variables=variables)[0])
self.assertFalse(lookup.run(["clearnet", "web-app-dashboard"], variables=variables)[0])
self.assertTrue(
lookup.run(["clearnet", "web-app-keycloak"], variables=variables)[0]
)
self.assertFalse(
lookup.run(["clearnet", "web-app-dashboard"], variables=variables)[0]
)
def test_a_deployed_role_on_a_tor_only_node_stays_off(self):
lookup = served_mod.LookupModule()
variables = {"group_names": ["svc-net-tor", "web-app-keycloak"], "NETWORK_MODE": "tor"}
self.assertFalse(lookup.run(["clearnet", "web-app-keycloak"], variables=variables)[0])
variables = {
"group_names": ["svc-net-tor", "web-app-keycloak"],
"NETWORK_MODE": "tor",
}
self.assertFalse(
lookup.run(["clearnet", "web-app-keycloak"], variables=variables)[0]
)
def test_a_mode_the_node_cannot_serve_fails_loudly(self):
with self.assertRaises(AnsibleError):