mirror of
https://github.com/aclist/dztui.git
synced 2026-11-12 13:00:37 +01:00
Merge branch 'chore/test-typehints' of github.com:aclist/dzgui into chore/test-typehints
This commit is contained in:
commit
047b9dbbf6
52 files changed
+259
-488
No files matched your search
@@ -1,13 +1,12 @@
|
||||
import gi
|
||||
import pytest
|
||||
import subprocess
|
||||
|
||||
from dzgui.const.constants import GIO_SETTINGS_KEY
|
||||
from dzgui.views.mixins.colorscheme import ColorAwareApp
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Gio, GLib # noqa
|
||||
from gi.repository import Gtk, GLib
|
||||
|
||||
|
||||
class DummyWidget(ColorAwareApp, Gtk.Button): # type: ignore
|
||||
|
||||
@@ -30,6 +30,7 @@ def default_steam_path() -> str:
|
||||
conf = get_config(xdg.config)
|
||||
return str(conf["default_steam_path"])
|
||||
|
||||
# TODO: additional parsing tests
|
||||
|
||||
def test_pefile_length(default_steam_path: str) -> None:
|
||||
try:
|
||||
@@ -49,6 +50,7 @@ def test_invalid_pefile_path() -> None:
|
||||
raise e
|
||||
|
||||
|
||||
# TODO: split into separate test file
|
||||
@pytest.mark.parametrize(
|
||||
"fixture, exception",
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user