From 0e1e107192882809da7e660c09ba501c09331c38 Mon Sep 17 00:00:00 2001 From: godosa Date: Wed, 7 Oct 2026 09:40:59 +0200 Subject: split projects 6/6: wf check split rules; docs Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2 --- tests/test_split.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests') diff --git a/tests/test_split.py b/tests/test_split.py index 965f667..934bf6f 100644 --- a/tests/test_split.py +++ b/tests/test_split.py @@ -258,3 +258,21 @@ class OrchSplitTest(SplitCli): self.assertIn("stop lane fast: push-failed", out) self.assertNotIn("branch fast/t-three still there", out) self.assertIn(f" {self.sha(self.code)} ", (self.root / "out" / "wf-orch.log").read_text()) + + +class CheckSplitTest(SplitCli): + def test_cloud_error_push_and_ignore_warnings(self): + (self.root / "workflow.toml").write_text(SplitCli.toml + "cloud = true\n") + (self.code / ".gitignore").write_text(".worktrees/\n") + git(self.code, "commit", "-qam", "no wf-home ignore") + code, out, err = self.wf("check") + self.assertEqual(code, 1) + self.assertIn("cloud lane needs a single repo", out) + self.assertIn("split project without push", out) + self.assertIn(".wf-home not git-ignored", out) + + def test_clean_split_project(self): + (self.root / "workflow.toml").write_text(SplitCli.toml + 'push = ["true"]\n') + code, out, err = self.wf("check") + self.assertEqual(code, 0, out) + self.assertNotIn("split", out) -- cgit