Fix testing with path in windows
This commit is contained in:
parent
402c761a23
commit
ad75048678
@ -644,7 +644,7 @@ def test_start_list_strategies(mocker, caplog, capsys):
|
|||||||
start_list_strategies(pargs)
|
start_list_strategies(pargs)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert "TestStrategyLegacy" in captured.out
|
assert "TestStrategyLegacy" in captured.out
|
||||||
assert "strategy/legacy_strategy.py" not in captured.out
|
assert str(Path("strategy/legacy_strategy.py")) not in captured.out
|
||||||
assert "DefaultStrategy" in captured.out
|
assert "DefaultStrategy" in captured.out
|
||||||
|
|
||||||
# Test regular output
|
# Test regular output
|
||||||
@ -658,7 +658,7 @@ def test_start_list_strategies(mocker, caplog, capsys):
|
|||||||
start_list_strategies(pargs)
|
start_list_strategies(pargs)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert "TestStrategyLegacy" in captured.out
|
assert "TestStrategyLegacy" in captured.out
|
||||||
assert "strategy/legacy_strategy.py" in captured.out
|
assert str(Path("strategy/legacy_strategy.py")) in captured.out
|
||||||
assert "DefaultStrategy" in captured.out
|
assert "DefaultStrategy" in captured.out
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user