A POST, PUT or DELETE to a path without a server handler isn't a page load,
so it should keep getting a 404 rather than a 200 with the client app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The catch-all only kicks in when the mapper matches nothing, but the
legacy /{action} and /{controller}/{action} routes match most client
paths. "/", "/histories" and "/admin/users" resolve to a controller with
no such action and 404 instead of serving the client.
Fix:
```
test/unit/web_framework/framework/test_framework_base.py:4
/home/runner/work/galaxy/galaxy/galaxy root/test/unit/web_framework/framework/test_framework_base.py:4: PytestCollectionWarning: cannot collect test class 'TestWebapp' because it has a __init__ constructor
class TestWebapp(WebApplication):
```
Also:
- Use f-string.
- Simplify code using assert.