Skip to content

Commit 5359125

Browse files
committed
fix: update version badge test to accept dynamic release badge
Made-with: Cursor
1 parent 3d114e6 commit 5359125

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_docs_consistency.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ def _extract_numbers(pattern, text):
1818

1919
class TestVersionConsistency:
2020
def test_readme_badge_version(self, plugin_manifest, readme_text):
21+
has_dynamic = "github/v/release" in readme_text
2122
version = plugin_manifest["version"]
22-
assert f"version-{version}-green" in readme_text, (
23-
f"README badge does not show version {version}"
23+
has_static = f"version-{version}" in readme_text
24+
assert has_dynamic or has_static, (
25+
f"README has no version badge (dynamic or static) for {version}"
2426
)
2527

2628
def test_roadmap_current_version(self, plugin_manifest, roadmap_text):

0 commit comments

Comments
 (0)