mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
tests: add dir() assertion
This commit is contained in:
parent
398b21a11d
commit
810d7de869
|
@ -1,5 +1,4 @@
|
||||||
# pragma pylint: disable=missing-docstring, protected-access, C0103
|
# pragma pylint: disable=missing-docstring, protected-access, C0103
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
@ -22,6 +21,8 @@ def test_import_strategy(caplog):
|
||||||
|
|
||||||
imported_strategy = import_strategy(strategy)
|
imported_strategy = import_strategy(strategy)
|
||||||
|
|
||||||
|
assert dir(strategy) == dir(imported_strategy)
|
||||||
|
|
||||||
assert imported_strategy.__module__ == 'freqtrade.strategy'
|
assert imported_strategy.__module__ == 'freqtrade.strategy'
|
||||||
assert imported_strategy.some_method() == 42
|
assert imported_strategy.some_method() == 42
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user