Skip to content

Commit

Permalink
Add simple test for EnsureChoice.__str__
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Oct 21, 2023
1 parent b27725a commit b27f292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datalad_next/constraints/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b27f292

Please sign in to comment.