-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(DIS-2798)
- Loading branch information
Showing
4 changed files
with
54 additions
and
36 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 |
---|---|---|
@@ -1,33 +1,37 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
|
||
def absolute_path(filename): | ||
return os.path.join(os.path.dirname(__file__), filename) | ||
def absolute_path(filename: str) -> Path: | ||
return Path(__file__).parent.joinpath(filename) | ||
|
||
|
||
@pytest.fixture | ||
def xp_modified_remote_lnk_file(): | ||
return Path(absolute_path("data/modified_remote.file.xp.lnk")) | ||
def xp_modified_remote_lnk_file() -> Path: | ||
return absolute_path("data/modified_remote.file.xp.lnk") | ||
|
||
|
||
@pytest.fixture | ||
def xp_remote_lnk_file(): | ||
return Path(absolute_path("data/remote.file.xp.lnk")) | ||
def xp_remote_lnk_file() -> Path: | ||
return absolute_path("data/remote.file.xp.lnk") | ||
|
||
|
||
@pytest.fixture | ||
def xp_remote_lnk_dir(): | ||
return Path(absolute_path("data/remote.directory.xp.lnk")) | ||
def xp_remote_lnk_dir() -> Path: | ||
return absolute_path("data/remote.directory.xp.lnk") | ||
|
||
|
||
@pytest.fixture | ||
def win7_local_lnk_dir(): | ||
return Path(absolute_path("data/local.directory.seven.lnk")) | ||
def win7_local_lnk_dir() -> Path: | ||
return absolute_path("data/local.directory.seven.lnk") | ||
|
||
|
||
@pytest.fixture | ||
def win81_downloads_lnk_dir(): | ||
return Path(absolute_path("data/downloads.win81.lnk")) | ||
def win81_downloads_lnk_dir() -> Path: | ||
return absolute_path("data/downloads.win81.lnk") | ||
|
||
|
||
@pytest.fixture | ||
def vista_idlist_lnk_file() -> Path: | ||
return absolute_path("data/vista.idlist.lnk") |
Binary file not shown.
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