Browse Source

fix: test ok

pull/15/head
QuentinN42 8 months ago
parent
commit
92a303b8e3
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 8
      tests/interfaces/test_ptf.py

8
tests/interfaces/test_ptf.py

@ -13,7 +13,7 @@ short_order = Short("GOLD", 1, 1)
class _TestPTFLong(PTF):
@property
def state(self):
return PTFState(0, {}, DataFrame())
return PTFState(0, {})
def execute_long(self, order: Long) -> None:
assert order == long_order
@ -24,7 +24,7 @@ class _TestPTFLong(PTF):
class _TestPTFLongShort(PTF):
@property
def state(self):
return PTFState(0, {}, DataFrame())
return PTFState(0, {})
def execute_long(self, order: Long) -> None:
assert order == long_order
@ -38,7 +38,7 @@ class _TestPTFLongShort(PTF):
class _TestPTFShort(PTF):
@property
def state(self):
return PTFState(0, {}, DataFrame())
return PTFState(0, {})
def execute_short(self, order: Long) -> None:
assert order == short_order
@ -49,7 +49,7 @@ class _TestPTFShort(PTF):
class _TestPTFNone(PTF):
@property
def state(self):
return PTFState(0, {}, DataFrame())
return PTFState(0, {})
@pytest.mark.parametrize(

Loading…
Cancel
Save