Skip to content

Commit c3bf974

Browse files
committed
Tests: Update
1 parent d96e857 commit c3bf974

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "xapi-python"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = [
55
{ name="Paweł Knioła", email="[email protected]" },
66
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"Programming Language :: Python :: 3.13",
2222
],
2323
python_requires='>=3.7',
24-
version="0.2.0",
24+
version="0.2.1",
2525
packages=['xapi'],
2626
)

tests/test_socket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ async def test_getNews(self):
112112
})
113113

114114
async def test_getProfitCalculation(self):
115-
await self.socket.getProfitCalculation("symbol", 1, 1.23, 4.56, 10)
115+
await self.socket.getProfitCalculation("symbol", TradeCmd.SELL, 1.23, 4.56, 10)
116116
self.socket._transaction.assert_awaited_once_with({
117117
"command": "getProfitCalculation",
118118
"arguments": {
119119
"closePrice": 4.56,
120-
"cmd": 1,
120+
"cmd": TradeCmd.SELL.value,
121121
"openPrice": 1.23,
122122
"symbol": "symbol",
123123
"volume": 10

xapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
name = "xapi"
6-
__version__ = "0.2.0"
6+
__version__ = "0.2.1"
77

88
from .xapi import XAPI, connect
99
from .enums import TradeCmd, TradeType, TradeStatus, PeriodCode

0 commit comments

Comments
 (0)