diff options
| author | godosa <godosa@godosa.eu> | 2026-10-07 09:40:59 +0200 |
|---|---|---|
| committer | godosa <godosa@godosa.eu> | 2026-10-07 09:40:59 +0200 |
| commit | 0e1e107192882809da7e660c09ba501c09331c38 (patch) | |
| tree | 32b2fd332464ca028c4dc5a8b03a216edeeb3229 /tests | |
| parent | 811de09feb866c5b344034399154bde77acdd5ba (diff) | |
| download | workflow-0e1e107192882809da7e660c09ba501c09331c38.tar.gz workflow-0e1e107192882809da7e660c09ba501c09331c38.zip | |
split projects 6/6: wf check split rules; docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_split.py | 18 |
1 files changed, 18 insertions, 0 deletions
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) |
