From 2d7bdbc53558a2099de00c343324698c671493a9 Mon Sep 17 00:00:00 2001 From: Egor Ivkov <e.o.ivkov@gmail.com> Date: Thu, 4 May 2023 17:47:59 +0300 Subject: [PATCH] fix: python test for prohibited space --- test/int/test_cas.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/int/test_cas.py b/test/int/test_cas.py index c6973e6272..d73704bc09 100644 --- a/test/int/test_cas.py +++ b/test/int/test_cas.py @@ -81,9 +81,17 @@ def test_cas_errors(instance: Instance): + f"raft index {index-1} is compacted at {index}", ) - # Prohibited space + # Prohibited spaces with pytest.raises(TarantoolError) as e5: - instance.cas("insert", "_picodata_space", [0], range=(0, 0)) + instance.cas( + "insert", + "_picodata_space", + [0], + range=( + dict(kind="included", value=0), + dict(kind="included", value=0), + ), + ) assert e5.value.args == ( "ER_PROC_C", "compare-and-swap request failed: space _picodata_space is prohibited for use " -- GitLab