HomePhabricator

Relax Flask app unit tests by ignoring whitespace

Description

Relax Flask app unit tests by ignoring whitespace

The tests checking the presence of some contents in the HTML
are extremely brittle, but we can make it a bit less so by
ignoring whitespace.

Here we replace the use of assertIn with a custom assertion
method which first strips away all whitespace from the strings.

Details

Provenance
JeanFredAuthored on May 22 2023, 7:02 PM
Parents
R2566:eec39012e516: Use `format_stats_for_one_grouping` for `make_stats_for_no_group` and…
Branches
Unknown
Tags
Unknown
ChangeId
None