Skip to content

Commit

Permalink
never forget the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Oct 2, 2024
1 parent bd85042 commit 3490bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 3490bad

Please sign in to comment.