1
0

Ruff
Some checks failed
Python Ruff Code Quality / ruff (push) Failing after 22s
Run Python tests (through Pytest) / Test (push) Successful in 30s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 25s

This commit is contained in:
Jon Michael Aanes 2024-12-02 18:57:16 +01:00
parent 1de9c9b14a
commit 53d0ce744a
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 4 additions and 2 deletions

View File

@ -1,13 +1,13 @@
"""Datastructures for `fin-depo`."""
import abc
import dataclassabc
import dataclasses
import datetime
from collections.abc import Iterable, Mapping
from decimal import Decimal
from typing import TypeVar
import dataclassabc
import enforce_typing
from fin_defs import Asset, AssetAmount

View File

@ -31,7 +31,9 @@ def test_place_market_order_requires_allow_trades():
)
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)