fix platform dependent bug in argparse test
This commit is contained in:
parent
d1cc9e868b
commit
315919cdd6
@ -1,5 +1,6 @@
|
|||||||
# pragma pylint: disable=missing-docstring
|
# pragma pylint: disable=missing-docstring
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
@ -117,4 +118,4 @@ def test_start_backtesting(mocker):
|
|||||||
|
|
||||||
main_call_args = pytest_mock.call_args[0][0]
|
main_call_args = pytest_mock.call_args[0][0]
|
||||||
assert main_call_args[0] == '-s'
|
assert main_call_args[0] == '-s'
|
||||||
assert main_call_args[1].endswith('freqtrade/tests/test_backtesting.py')
|
assert main_call_args[1].endswith(os.path.join('freqtrade', 'tests', 'test_backtesting.py'))
|
||||||
|
Loading…
Reference in New Issue
Block a user