sanic-org / sanic-routing

Internal handler routing for Sanic beginning with v21.3.
https://sanicframework.org/
MIT License
14 stars 11 forks source link

Add path argument to NoMethod class #78

Closed eric-spitler closed 10 months ago

eric-spitler commented 1 year ago

Resolves #77

eric-spitler commented 12 months ago

When I attempt to replicate it via testing on the current baseline, I can't get the issue to come up. It only seems to happen when I'm attaching the handlers to a Sanic instance. I suspect it is somewhere deeper in how Sanic finalizes/compiles the Router instance in a more in-depth way than is currently done in tests/test_routing.py https://github.com/sanic-org/sanic-routing/blob/8893c4aca70606e02f8c73f780a2c0ef9cb3e8c7/tests/test_routing.py#L298-L304

However, Sanic is not a testing dependency (likely by design to prevent circular dependency issues), so I'm still trying to figure out how to emulate the full Router setup.