Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 5d03d91

Browse files
committed
Get 100% coverage on classnames.py
1 parent 3af103c commit 5d03d91

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

html_tstring/classnames_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def test_cslx_empty_strings():
1919
assert classnames("", "btn", "", "btn-primary", "") == "btn btn-primary"
2020

2121

22+
def test_clsx_booleans():
23+
assert classnames(True, False) == ""
24+
25+
2226
def test_classnames_lists_and_tuples():
2327
assert (
2428
classnames(["btn", "btn-primary"], ("active", "disabled"))

0 commit comments

Comments
 (0)