Skip to content

Commit

Permalink
Add quotation tests to improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzheng committed Aug 23, 2023
1 parent 5ed9d61 commit 9c87d5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_fieldtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,12 @@ def test_path_posix(path_initializer, path, expected_repr):
r"\c:\Windows\System32\drivers\null.sys",
),
("Users\\Public", r"'Users\Public'", r"Users\Public"),
(r"i:\don't.exe", '"i:\\don\'t.exe"', r"i:\don't.exe"),
(
'y:\\shakespeare\\"to be or not to be".txt',
"'y:\\shakespeare\\\"to be or not to be\".txt'",
'y:\\shakespeare\\"to be or not to be".txt',
),
],
)
def test_path_windows(path_initializer, path, expected_repr, expected_str):
Expand Down

0 comments on commit 9c87d5e

Please sign in to comment.