ciscorn / starlette-graphene3

An ASGI app for using Graphene v3 with Starlette / FastAPI
MIT License
101 stars 14 forks source link

Make background tasks available #5

Closed abompard closed 3 years ago

abompard commented 3 years ago

According to the official Starlette docs there should be a background key in the context that gives access to a BackgroundTasks instance. This changeset brings it back in starlette-graphene3.

codecov[bot] commented 3 years ago

Codecov Report

Merging #5 (63cb675) into master (7b0d928) will increase coverage by 0.05%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage   89.28%   89.34%   +0.05%     
==========================================
  Files           1        1              
  Lines         196      197       +1     
==========================================
+ Hits          175      176       +1     
  Misses         21       21              
Flag Coverage Δ
unittests 89.34% <100.00%> (+0.05%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
starlette_graphene3.py 89.34% <100.00%> (+0.05%) :arrow_up:

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 7b0d928...63cb675. Read the comment docs.

ciscorn commented 3 years ago

Thank you!