Add Herdr agent fork command menu
This commit is contained in:
@@ -59,6 +59,21 @@ class TmuxIntegrationTests(unittest.TestCase):
|
||||
pass
|
||||
self.socket_path.unlink(missing_ok=True)
|
||||
|
||||
def test_control_uses_existing_prefix_and_active_window(self) -> None:
|
||||
self.hub.ensure_server()
|
||||
binding = self.hub.run(["list-keys", "-T", "prefix", "h"]).stdout
|
||||
self.assertIn("display-popup", binding)
|
||||
self.assertIn("control", binding)
|
||||
self.assertNotIn("--window", binding)
|
||||
self.assertNotIn("#{window_id}", binding)
|
||||
old_binding = self.hub.run(
|
||||
["list-keys", "-T", "root", "C-g"], check=False
|
||||
)
|
||||
self.assertNotEqual(old_binding.returncode, 0)
|
||||
self.assertEqual(self.hub.run(["show-options", "-gv", "prefix"]).stdout.strip(), "C-a")
|
||||
self.assertEqual(self.hub.run(["show-options", "-gv", "prefix2"]).stdout.strip(), "None")
|
||||
self.assertIn("choose", self.hub.run(["list-keys", "-T", "prefix", "g"]).stdout)
|
||||
|
||||
def test_configures_isolated_server_and_adds_without_duplicates(self) -> None:
|
||||
self.assertTrue(self.hub.ensure_server())
|
||||
endpoints = [Endpoint.local(), Endpoint.remote("orangepi")]
|
||||
|
||||
Reference in New Issue
Block a user