Skip zero test and change use Path when creating a config folder in marketstore
parent
55253c8469
commit
342aec648b
|
@ -35,6 +35,7 @@ from typing import (
|
||||||
)
|
)
|
||||||
import time
|
import time
|
||||||
from math import isnan
|
from math import isnan
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from bidict import bidict
|
from bidict import bidict
|
||||||
from msgspec.msgpack import encode, decode
|
from msgspec.msgpack import encode, decode
|
||||||
|
@ -134,7 +135,7 @@ def start_marketstore(
|
||||||
|
|
||||||
# create dirs when dne
|
# create dirs when dne
|
||||||
if not os.path.isdir(config._config_dir):
|
if not os.path.isdir(config._config_dir):
|
||||||
os.mkdir(config._config_dir)
|
Path(config._config_dir).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
if not os.path.isdir(mktsdir):
|
if not os.path.isdir(mktsdir):
|
||||||
os.mkdir(mktsdir)
|
os.mkdir(mktsdir)
|
||||||
|
|
|
@ -184,7 +184,7 @@ def test_sell(open_test_pikerd_and_ems: AsyncContextManager, delete_testing_dir)
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="Due to precision issues, this test will currently fail")
|
||||||
def test_multi_sell(open_test_pikerd_and_ems: AsyncContextManager, delete_testing_dir):
|
def test_multi_sell(open_test_pikerd_and_ems: AsyncContextManager, delete_testing_dir):
|
||||||
# Make 5 market limit buy orders
|
# Make 5 market limit buy orders
|
||||||
_run_test_and_check(
|
_run_test_and_check(
|
||||||
|
|
Loading…
Reference in New Issue