Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 22, 2019
1 parent 7248579 commit 87e737b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ FROM timkpaine/aat:latest
WORKDIR /usr/src/app
ADD . /usr/src/app

RUN python3 -m pip install -U codecov pytest mock flake8 pylint
RUN python3 -m pip install -U codecov coverage pytest pytest-cov mock flake8 pylint
RUN python3 -m pip install -r requirements.txt

RUN DOCKER=true make test
RUN make build
RUN make test
RUN codecov --token caa422e7-7543-4adb-8ee1-e4a7ea24b988
12 changes: 5 additions & 7 deletions aat/tests/exchanges/test_coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ def test_init(self):
from ...exchanges.coinbase import CoinbaseExchange
from ...enums import ExchangeType

with patch('os.environ'), patch('gdax.AuthenticatedClient') as m:
ec = ExchangeConfig()
ec.exchange_type = ExchangeType.COINBASE
m.getAccounts.return_value = []
e = CoinbaseExchange(ExchangeType.COINBASE, ec)
e._running = True
assert e
ec = ExchangeConfig()
ec.exchange_type = ExchangeType.COINBASE
e = CoinbaseExchange(ExchangeType.COINBASE, ec)
e._running = True
assert e

def test_receive(self):
from ...config import ExchangeConfig
Expand Down
12 changes: 4 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
coverage>=4.5.1
ccxt
aiostream>=0.3.1
ccxt>=1.18.529
cycler>=0.10.0
deribit-api
gdax>=1.0.6
Jinja2>=2.10
krakenex>=0.1.3
matplotlib>=2.2.2
mock>=2.0.0
nose>=1.3.7
numpy>=1.14.5
pandas>=0.23.3
perspective-python>=0.1.6
scipy>=1.1.0
seaborn>=0.8.1
sphinx>=1.7.5
six>=1.10.0
requests>=2.13.0
tornado>=5.1
ujson>=1.35
websocket-client>=0.40.0
websocket-client>=0.40.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
packages=find_packages(),
include_package_data=True,
zip_safe=False,
extras_require={'dev': requires + ['pytest', 'pytest-cov', 'pylint', 'flake8']},
extras_require={'dev': requires + ['pytest', 'pytest-cov', 'pylint', 'flake8', 'mock']},
entry_points={
'console_scripts': [
'aat=aat:main',
Expand Down
2 changes: 1 addition & 1 deletion setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ setup(
packages=find_packages(),
include_package_data=True,
zip_safe=False,
extras_require={'dev': requires + ['pytest', 'pytest-cov', 'pylint', 'flake8']},
extras_require={'dev': requires + ['pytest', 'pytest-cov', 'pylint', 'flake8', 'mock']},
entry_points={
'console_scripts': [
'aat=aat:main',
Expand Down

0 comments on commit 87e737b

Please sign in to comment.