From 3490bad5ca130f61a2419ee26707cbe78a682296 Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Wed, 2 Oct 2024 17:58:20 +0200 Subject: [PATCH] never forget the tests --- tests/test_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_common.py b/tests/test_common.py index 92c24fd..926042d 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -3,7 +3,7 @@ import json import logging from pathlib import Path -from typing import Any +from typing import Any, Dict, Union import pytest from pytest import MonkeyPatch @@ -43,7 +43,7 @@ def test_something_that_involves_user_input(monkeypatch: MonkeyPatch) -> None: ("raise", "Something"), ] ) -def test_read_save_json(name: str, data: dict[str, Any] | str, tmp_path: Path) -> None: +def test_read_save_json(name: str, data: Union[Dict[str, Any], str], tmp_path: Path) -> None: p = tmp_path / f"data.{name}" if name == "raise":