]> git.ipfire.org Git - thirdparty/starlette.git/commit
Apply right name to `Route` when created from methods (#1553)
authorFelix Fanghaenel <35657654+flxdot@users.noreply.github.com>
Fri, 8 Apr 2022 18:53:17 +0000 (20:53 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Apr 2022 18:53:17 +0000 (20:53 +0200)
commitd7cbe2a4887ad6b15fe7523ed62e28a426b7697d
treeed9b2a85a417ef766936aa468d65b5e355126222
parent487f05dfc641a0632be8bd405add6454cab4f6b0
Apply right name to `Route` when created from methods (#1553)

* add support to read route names from methods

* simplify implementation

* add tests for automatic route naming

* simplify tests

* Apply suggestions from code review

* Update tests/test_routing.py

* format with black

* Apply suggestions from code review

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
starlette/routing.py
tests/test_routing.py