Thanks to visit codestin.com
Credit goes to github.com

Skip to content

include missing callbacks parameter#792

Merged
tiangolo merged 3 commits into
fastapi:masterfrom
jekirl:patch-1
Jan 8, 2020
Merged

include missing callbacks parameter#792
tiangolo merged 3 commits into
fastapi:masterfrom
jekirl:patch-1

Conversation

@jekirl

@jekirl jekirl commented Dec 14, 2019

Copy link
Copy Markdown
Contributor

Otherwise callbacks registered on a sub-router are not propagated back up to the application.

Otherwise callbacks registered on a sub-router are not propagated back up to the application.
@codecov

codecov Bot commented Dec 14, 2019

Copy link
Copy Markdown

Codecov Report

Merging #792 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #792   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         286    288    +2     
  Lines        7466   7555   +89     
=====================================
+ Hits         7466   7555   +89
Impacted Files Coverage Δ
docs/src/openapi_callbacks/tutorial001.py 100% <ø> (ø) ⬆️
fastapi/routing.py 100% <ø> (ø) ⬆️
tests/test_sub_callbacks.py 100% <100%> (ø)
fastapi/encoders.py 100% <0%> (ø) ⬆️
tests/test_inherited_custom_class.py 100% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a44540...445e7ba. Read the comment docs.

@dmontagu

Copy link
Copy Markdown
Contributor

Could you add a test that currently fails, but is fixed by this change?

@tiangolo tiangolo merged commit cb14104 into fastapi:master Jan 8, 2020
@tiangolo

tiangolo commented Jan 8, 2020

Copy link
Copy Markdown
Member

Thanks @jekirl ! 👍

Good point @dmontagu . I just added a test for this based on the one from the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants