diff --git a/dzgui/api/shortcuts.py b/dzgui/api/shortcuts.py index 11bd80d7..2c61fbbe 100644 --- a/dzgui/api/shortcuts.py +++ b/dzgui/api/shortcuts.py @@ -2,7 +2,7 @@ import binascii import ctypes import logging import shutil -import vdf # type: ignore +import vdf # type: ignore[import-untyped] from dataclasses import dataclass from importlib import resources diff --git a/dzgui/api/steam.py b/dzgui/api/steam.py index 22fefa42..841f0e50 100644 --- a/dzgui/api/steam.py +++ b/dzgui/api/steam.py @@ -4,7 +4,7 @@ import psutil import re import requests import subprocess -import vdf # type: ignore +import vdf # type: ignore[import-untyped] from pathlib import Path from requests.exceptions import HTTPError diff --git a/tests/test_mod_directory.py b/tests/test_mod_directory.py index bde040e9..aa9ed4fe 100644 --- a/tests/test_mod_directory.py +++ b/tests/test_mod_directory.py @@ -1,5 +1,5 @@ import pytest -import vdf +import vdf # type: ignore[import-untyped] from pathlib import Path @@ -7,11 +7,13 @@ from dzgui.api.mods import get_local_mod_ids from dzgui.util.dirs import make_parents from tests.fixtures import fixture_path + @pytest.fixture def libraryfolders() -> Path: return fixture_path("api/steamapps/libraryfolders.vdf") -def test_missing_mod_dir(tmp_path, libraryfolders: Path) -> None: + +def test_missing_mod_dir(tmp_path: Path, libraryfolders: Path) -> None: """ Updates fixture file key with tmp path value serializes to file, then tests for missing mod directory returning an empty list