From 4660d0cb34fc4c6ecbd97f573a92e49914a5d4b2 Mon Sep 17 00:00:00 2001 From: istos Date: Fri, 31 Jul 2026 17:28:20 +0200 Subject: [PATCH] 0.3-alpha And un-pin the landing page's version test: it named 0.2-alpha as the string to replace in VERSION, so the first bump after it was written failed the suite. It reads the file now, which is what the test is about in the first place. --- manager/core/VERSION | 2 +- tests/test_site_landing.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/manager/core/VERSION b/manager/core/VERSION index 10fb1b1..bc872a0 100644 --- a/manager/core/VERSION +++ b/manager/core/VERSION @@ -1 +1 @@ -0.2-alpha +0.3-alpha diff --git a/tests/test_site_landing.py b/tests/test_site_landing.py index cda5a8c..002243c 100644 --- a/tests/test_site_landing.py +++ b/tests/test_site_landing.py @@ -209,10 +209,13 @@ class ChangingASourceChangesThePage(ScratchCase): return (self.repo.out / "index.html").read_text("utf-8") def test_editing_the_version_file_moves_the_version_on_the_page(self): - self.repo.edit("manager/core/VERSION", "0.2-alpha", "9.9-rc1") + """Read the version rather than naming one: a test that pins the + current version is a test that fails on the next release.""" + version = text_of(REPO / "manager" / "core" / "VERSION").strip() + self.repo.edit("manager/core/VERSION", version, "9.9-rc1") self.assertEqual(0, self.repo.build().returncode) self.assertIn("9.9-rc1", self.home()) - self.assertNotIn("0.2-alpha", self.home()) + self.assertNotIn(version, self.home()) def test_editing_the_readme_moves_the_command_on_the_page(self): self.repo.edit("README.md", "mkdir .task-manager && curl -L \\",