-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for_file helper without lnk_name
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pylnk3 import Lnk, for_file | ||
|
||
|
||
def test_helpers_for_file(temp_filename: str) -> None: | ||
path = 'C:\\folder\\file.txt' | ||
lnk = for_file(path) | ||
assert lnk.path == path | ||
lnk.save(temp_filename) | ||
lnk2 = Lnk.from_file(temp_filename) | ||
assert lnk2.path == path |