Initial import: grid-bot — grid trading bot for BTC-USDT on Cifra Markets

This commit is contained in:
Kolp
2026-09-24 13:22:23 +07:00
commit 642cc11a9f
18968 changed files with 5683248 additions and 0 deletions
@@ -0,0 +1,28 @@
import pytest
from pandas import (
DataFrame,
Series,
)
import pandas._testing as tm
def test_divmod_bool_raises(box_with_array):
# GH#46043 // raises, so divmod should too
ser = Series([True, False])
obj = tm.box_expected(ser, box_with_array)
msg = "operator 'floordiv' not implemented for bool dtypes"
with pytest.raises(NotImplementedError, match=msg):
obj // obj
if box_with_array is DataFrame:
msg = "operator 'floordiv' not implemented for bool dtypes"
else:
msg = "operator 'divmod' not implemented for bool dtypes"
with pytest.raises(NotImplementedError, match=msg):
divmod(obj, obj)
# go through __rdivmod__
with pytest.raises(NotImplementedError, match=msg):
divmod(True, obj)