Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more unit tests #241

Merged
merged 1 commit into from Dec 27, 2017
Merged

Add more unit tests #241

merged 1 commit into from Dec 27, 2017

Conversation

glonlas
Copy link
Member

@glonlas glonlas commented Dec 27, 2017

Just for the fun, more unit tests more coverage \o/

validate_pairs=MagicMock(),
get_ticker=ticker,
buy=MagicMock(return_value='mocked_limit_buy'))
mocker.patch('freqtrade.main.min_roi_reached', MagicMock(return_value=True))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mocker.patch uses MagicMock by default so you can simplify that with just

mocker.patch('freqtrade.main.min_roi_reached', return_value=True)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tips. I will do it.

@glonlas
Copy link
Member Author

glonlas commented Dec 27, 2017

@vertti your comment is fixed. Waiting for the tests to pass.

@glonlas glonlas changed the title Add more unittests Add more unit tests Dec 27, 2017
@vertti
Copy link
Member

vertti commented Dec 27, 2017

Looks good to me.

@gcarq gcarq merged commit 6c8253a into freqtrade:develop Dec 27, 2017
@glonlas glonlas deleted the add_unittests branch December 28, 2017 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants