Closed RudolfCardinal closed 2 years ago
Good idea!
I've removed the body class for now. It's there in version control if we ever want it back.
I mean to look at Factory Boy (https://factoryboy.readthedocs.io/) at some point for creating test fixtures. I've used it with Django and it claims to support SQLAlchemy.
(1) Make tests use the random data generation and ensure that they don't crash when rendering HTM. (2) Fix the expectation/detection threshold task so it passes that test with random data. (3) Fix bug where that recent style change in
base_web.mako
usedrequest.matched_route.name
when it might not exist (I think becauserequest.matched_route
was None but not absolutely sure) -- this caused a rendering crash to the log (though the PDF still got generated!). Not quite sure whatbase_web.mako
is contributing to the PDF view, though.