From f37733bf5fecfba8a05ec721f310121501f35ce3 Mon Sep 17 00:00:00 2001 From: ltsyk Date: Thu, 30 Jul 2026 15:17:13 +0800 Subject: [PATCH] test: cover whitespace-only slugify input Test whitespace-only slugify returns empty (issue #169) --- test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.py b/test.py index fcec4b6..3047381 100644 --- a/test.py +++ b/test.py @@ -655,3 +655,9 @@ def test_multivalued_options_with_text(self): if __name__ == '__main__': # pragma: nocover unittest.main() + + +def test_slugify_whitespace_only_returns_empty(): + from slugify import slugify + assert slugify(" ") == "" + assert slugify("\t\n") == ""