diff --git a/tests/integration/test_live_server.py b/tests/integration/test_live_server.py index 0273b50..d4f23f3 100644 --- a/tests/integration/test_live_server.py +++ b/tests/integration/test_live_server.py @@ -3,6 +3,7 @@ Skipped unless CYCLES_BASE_URL is set. """ import os + import pytest pytestmark = pytest.mark.skipif( diff --git a/tests/test_contract.py b/tests/test_contract.py index 284ccf2..54c7a5e 100644 --- a/tests/test_contract.py +++ b/tests/test_contract.py @@ -2,9 +2,8 @@ from __future__ import annotations -import pathlib - import copy +import pathlib import pytest import yaml @@ -20,7 +19,7 @@ # --------------------------------------------------------------------------- def _load_spec() -> dict: - with open(SPEC_PATH) as f: + with open(SPEC_PATH, encoding="utf-8") as f: return yaml.safe_load(f)