tests: add dir() assertion
This commit is contained in:
parent
4bd61df3a7
commit
818a6b12ed
@ -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