From 03306193262f9400d6e60ab11bc1f8bfc056bb7e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Sat, 26 Sep 2026 22:23:04 +0100 Subject: Stop work chat autostart on Halley2 --- tests/test_host_autostart.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/test_host_autostart.py (limited to 'tests') diff --git a/tests/test_host_autostart.py b/tests/test_host_autostart.py new file mode 100644 index 0000000..632f1cf --- /dev/null +++ b/tests/test_host_autostart.py @@ -0,0 +1,19 @@ +import unittest +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] + + +class HostAutostartTests(unittest.TestCase): + def test_work_chat_is_not_started_by_sway(self): + units = (ROOT / "systemd-units/user.txt").read_text() + target = (ROOT / "dot_config/systemd/user/sway-session.target").read_text() + for content in (units, target): + self.assertNotIn("mattermost.service", content) + self.assertNotIn("nheko@work.service", content) + self.assertIn("nheko@personal.service", content) + self.assertTrue((ROOT / "dot_config/systemd/user/mattermost.service").exists()) + for app in ("mattermost", "nheko"): + self.assertTrue( + (ROOT / f"dot_config/autostart/dotfiles-{app}.desktop").exists() + ) -- cgit v1.3.1