Commit fe9a87d
tests: derive expected addon target version from Gramps install
`test_target_version_is_6_0` hardcoded "6.0" in the assertion and its
name, so the same harness copied to maintenance/gramps61 (via the
bootstrap commit 458ebd0) flagged every 6.1-targeted addon as
mistargeted. Switch the prefix to ``f"{VERSION_TUPLE[0]}.{VERSION_TUPLE[1]}"``,
read from the loaded ``gramps.version``, so the same test works on every
maintenance branch — the CI image's Gramps install is always the series
that branch's addons should target, which is exactly what we want to
assert.
Rename the method to ``test_target_version_matches_gramps_install`` to
match the new semantics, and update the failure message to include the
expected prefix instead of a fixed "6.0".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 458ebd0 commit fe9a87d
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
132 | 140 | | |
133 | 141 | | |
134 | | - | |
| 142 | + | |
135 | 143 | | |
136 | 144 | | |
137 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
138 | 149 | | |
139 | 150 | | |
140 | 151 | | |
| |||
0 commit comments