We currently have a copy of the entire expected HTML in the test code, and this is a pain to updated when changes happen. Try using something like syrupy instead: https://til.simonwillison.net/pytest/syrupy