5 Commits
Author SHA1 Message Date
mvdbeekandClaude Opus 5.5 10e8dbdf0c Only fall back to the client for GET and HEAD
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>
2026-10-08 17:57:39 +02:00
Dannon Baker d3ae493412 Add failing tests for client paths that match a route but have no handler
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.
2026-10-07 19:21:09 -04:00
Nicola Soranzo 15ba0f8747 Fix warning in pytest collection
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.
2022-05-12 16:38:15 +01:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton 1e09b7775a Move test/unit/web -> test/unit/web_framework 2020-07-06 11:22:28 -04:00