Skip to content

Commit

Permalink
Add feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Horofic committed Jan 30, 2024
1 parent 67852dd commit a1e9f31
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
import os
from pathlib import Path

import pytest


def absolute_path(filename: str) -> str:
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() -> Path:
return Path(absolute_path("data/modified_remote.file.xp.lnk"))
return absolute_path("data/modified_remote.file.xp.lnk")


@pytest.fixture
def xp_remote_lnk_file() -> Path:
return Path(absolute_path("data/remote.file.xp.lnk"))
return absolute_path("data/remote.file.xp.lnk")


@pytest.fixture
def xp_remote_lnk_dir() -> Path:
return Path(absolute_path("data/remote.directory.xp.lnk"))
return absolute_path("data/remote.directory.xp.lnk")


@pytest.fixture
def win7_local_lnk_dir() -> Path:
return Path(absolute_path("data/local.directory.seven.lnk"))
return absolute_path("data/local.directory.seven.lnk")


@pytest.fixture
def win81_downloads_lnk_dir() -> Path:
return Path(absolute_path("data/downloads.win81.lnk"))
return absolute_path("data/downloads.win81.lnk")


@pytest.fixture
def vista_idlist_lnk_file() -> Path:
return Path(absolute_path("data/vista.idlist.lnk"))
return absolute_path("data/vista.idlist.lnk")

0 comments on commit a1e9f31

Please sign in to comment.