Permalink
Browse files

node.info stubbing

  • Loading branch information...
jmunsch
jmunsch committed Sep 17, 2017
1 parent 27e9f77 commit e66ec9ac106ec33acacda7463a585bbe0258e431
Showing with 2 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +1 −1 tests/test_accounts.py
View
@@ -7,7 +7,7 @@ before_install:
- sudo apt-get update
- sudo apt-get install -y ethereum solc
install: "python setup.py develop"
script: LAMDEN_FOLDER_PATH=. NODE_INFO_JSON=$HOME/node.info pytest -s tests
script: LAMDEN_FOLDER_PATH=. NODE_INFO_JSON=~/node.info pytest -s tests
notifications:
webhooks:
- https://lamden-discord-travisci.herokuapp.com/webhook/
View
@@ -7,7 +7,7 @@
mock_json = b'''{"identity": "GenesisNode", "rpc": true, "rpcport": 8545, "rpccorsdomain": "*", "port": 30303, "nodiscover": false, "ipcapi": "admin,db,eth,debug,miner,net,shh,txpool,personal,web3", "rpcapi": "db,eth,net,web3,personal,web3", "autodag": true, "networkid": 1900}'''
with open('{HOME}/node.info'.format(HOME=os.environ.get('HOME')), 'wb') as f:
with open(os.path.expanduser('/node.info'.format(HOME=os.environ.get('HOME'))), 'wb') as f:
f.write(mock_json)
@pytest.fixture

0 comments on commit e66ec9a

Please sign in to comment.