Skip to content

Commit 446d35e

Browse files
committed
add test-case for null-safe try_parse_url_path
1 parent 4aadf30 commit 446d35e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aikido_zen/helpers/try_parse_url_path_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ def test_try_parse_url_path_for_absolute_url_with_query_no_path():
4444

4545
def test_try_parse_url_path_for_absolute_url_with_hash_no_path():
4646
assert try_parse_url_path("http://localhost#abc") == "/"
47+
48+
49+
def test_try_parse_url_path_none():
50+
assert try_parse_url_path(None) is None

0 commit comments

Comments
 (0)