Commit c6898e6
Make test_full_label assert the visible Label property
The previous assertion searched the whole page for the full label, which
is already present in the "Underlying data", "All stored data" and
"Coefficients" download URLs regardless of what the properties box shows.
It therefore passed even with ('Label', short_label(self.label)) restored.
Match the Label row rendered by templates/homepage.html instead, and check
that both URL forms return 200 so an error page cannot satisfy the content
assertion. Also assert the title still uses the short label, documenting
the intended distinction between the two formats.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 3f89180 commit c6898e6
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
0 commit comments