Skip to content

Commit 53afd30

Browse files
factor out
1 parent 9a165c2 commit 53afd30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,10 @@ def test_is_absolute_href_os_aware(self) -> None:
230230
# Test cases of (href, expected)
231231

232232
is_windows = os.name == "nt"
233+
incl_drive_letter = path_includes_drive_letter()
233234
test_cases = [
234-
("/item.json", not path_includes_drive_letter()),
235-
("/home/someuser/Downloads/item.json", not path_includes_drive_letter()),
235+
("/item.json", not incl_drive_letter),
236+
("/home/someuser/Downloads/item.json", not incl_drive_letter),
236237
("d:/item.json", is_windows),
237238
("c:/files/more_files/item.json", is_windows),
238239
]

0 commit comments

Comments
 (0)