From b27f2920de231fd129bbf846688c9e3b01ff78de Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Sat, 21 Oct 2023 10:19:06 +0200 Subject: [PATCH] Add simple test for EnsureChoice.__str__ --- datalad_next/constraints/tests/test_basic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datalad_next/constraints/tests/test_basic.py b/datalad_next/constraints/tests/test_basic.py index 98f43f76..21cb6656 100644 --- a/datalad_next/constraints/tests/test_basic.py +++ b/datalad_next/constraints/tests/test_basic.py @@ -189,6 +189,7 @@ def test_choice(): assert i in descr # short is a "set" or repr()s assert c.short_description() == "{'choice1', 'choice2', None}" + assert str(c) == "one of {'choice1', 'choice2', None}" # this should always work assert c('choice1') == 'choice1' assert c(None) is None