Ruff
This commit is contained in:
parent
1de9c9b14a
commit
53d0ce744a
|
@ -1,13 +1,13 @@
|
||||||
"""Datastructures for `fin-depo`."""
|
"""Datastructures for `fin-depo`."""
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import dataclassabc
|
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import datetime
|
import datetime
|
||||||
from collections.abc import Iterable, Mapping
|
from collections.abc import Iterable, Mapping
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from typing import TypeVar
|
from typing import TypeVar
|
||||||
|
|
||||||
|
import dataclassabc
|
||||||
import enforce_typing
|
import enforce_typing
|
||||||
from fin_defs import Asset, AssetAmount
|
from fin_defs import Asset, AssetAmount
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,9 @@ def test_place_market_order_requires_allow_trades():
|
||||||
)
|
)
|
||||||
|
|
||||||
with pytest.raises(PermissionError) as m:
|
with pytest.raises(PermissionError) as m:
|
||||||
fetcher.place_market_order(fin_defs.AssetAmount(fin_defs.MPC, Decimal(1)), fin_defs.USDT)
|
fetcher.place_market_order(
|
||||||
|
fin_defs.AssetAmount(fin_defs.MPC, Decimal(1)), fin_defs.USDT
|
||||||
|
)
|
||||||
|
|
||||||
assert 'KucoinDepoFetcher.allow_trades is not enabled: Cannot make trades' in str(m)
|
assert 'KucoinDepoFetcher.allow_trades is not enabled: Cannot make trades' in str(m)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user