Try to clear caplog ...

This commit is contained in:
Matthias 2019-12-17 11:07:59 +01:00
parent e1c0c6af7d
commit 2e2f084f66
2 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,7 @@ jobs:
COVERALLS_SERVICE_NAME: travis-ci
TRAVIS: "true"
run: |
pytest --random-order --cov=freqtrade --cov-config=.coveragerc --random-order-seed=834267
pytest --random-order --cov=freqtrade --cov-config=.coveragerc
# Allow failure for coveralls
# Fake travis environment to get coveralls working correctly
export TRAVIS_PULL_REQUEST="https://github.com/${GITHUB_REPOSITORY}/pull/$(cat $GITHUB_EVENT_PATH | jq -r .number)"

View File

@ -444,6 +444,9 @@ def test_create_datadir_failed(caplog):
def test_create_datadir(caplog, mocker):
# Ensure that caplog is empty before starting ...
# Should prevent random failures.
caplog.clear()
cud = mocker.patch("freqtrade.utils.create_userdata_dir", MagicMock())
csf = mocker.patch("freqtrade.utils.copy_sample_files", MagicMock())
args = [