Skip to content

Commit

Permalink
Add minimal testing
Browse files Browse the repository at this point in the history
  • Loading branch information
umitanuki committed Oct 30, 2018
1 parent bc6e91f commit 1c7cca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Expand Up @@ -11,3 +11,5 @@ test=pytest

[tool:pytest]
addopts = --verbose --cov alpaca_backtrader_api --cov-report=term-missing
filterwarnings =
ignore:invalid escape sequence.*:DeprecationWarning
5 changes: 5 additions & 0 deletions tests/test_alpacabroker.py
@@ -0,0 +1,5 @@
from alpaca_backtrader_api import alpacabroker

def test_alpaca_broker():
comminfo = alpacabroker.AlpacaCommInfo(mult=1.0, stocklike=False)
assert comminfo.getvaluesize(1, 100.00) == 100.00

0 comments on commit 1c7cca5

Please sign in to comment.