tfukaza / harvest

Simple and intuitive Python framework for algorithmic trading. Easily create bots to live and paper trade stocks, crypto, and options!
https://tfukaza.github.io/harvest-website
MIT License
124 stars 26 forks source link

Update tests #257

Closed tfukaza closed 2 years ago

tfukaza commented 2 years ago

This is a continuation of the test framework update.

I had to disable the feature to save PaperBroker stats since it was interfering with unit tests. I'll need to open an issue for that later.

codecov[bot] commented 2 years ago

Codecov Report

Merging #257 (faf83ad) into main (b0bcbad) will decrease coverage by 23.11%. The diff coverage is 68.01%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #257       +/-   ##
===========================================
- Coverage   78.62%   55.50%   -23.12%     
===========================================
  Files          19       24        +5     
  Lines        2437     3713     +1276     
===========================================
+ Hits         1916     2061      +145     
- Misses        521     1652     +1131     
Flag Coverage Δ
unittests 55.50% <68.01%> (-23.12%) :arrow_down:

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

Impacted Files Coverage Δ
harvest/api/alpaca.py 3.20% <0.00%> (ø)
harvest/api/kraken.py 2.32% <0.00%> (ø)
harvest/api/robinhood.py 1.55% <0.00%> (ø)
harvest/api/webull.py 1.47% <0.00%> (ø)
harvest/api/polygon.py 20.31% <50.00%> (ø)
harvest/api/_base.py 70.73% <58.33%> (-3.06%) :arrow_down:
harvest/api/paper.py 83.78% <75.36%> (-2.58%) :arrow_down:
harvest/utils.py 86.26% <89.01%> (+1.27%) :arrow_up:
harvest/trader/trader.py 87.03% <92.00%> (+1.21%) :arrow_up:
harvest/api/dummy.py 91.89% <100.00%> (-0.08%) :arrow_down:
... and 11 more

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 147c2a7...faf83ad. Read the comment docs.