taskiq-python / taskiq

Distributed task queue with full async support
MIT License
694 stars 44 forks source link

Added depdencies override as in fastapi. #228

Closed s3rius closed 8 months ago

s3rius commented 8 months ago

This PR adds aability to override dependency functions. This functionality is kinda similar to how fastapi handles dependency overrides dict. Useful for testing purposes.

codecov-commenter commented 8 months ago

Codecov Report

Merging #228 (06106e5) into develop (dd0758d) will increase coverage by 0.01%. The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop     #228      +/-   ##
===========================================
+ Coverage    73.04%   73.05%   +0.01%     
===========================================
  Files           56       56              
  Lines         1684     1685       +1     
===========================================
+ Hits          1230     1231       +1     
  Misses         454      454              
Files Coverage Δ
taskiq/abc/broker.py 79.16% <100.00%> (+0.17%) :arrow_up:
taskiq/receiver/receiver.py 93.54% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more