From 459737a1b0d46ad00c3fc5bd14033ced496b1220 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 07:32:23 +0000 Subject: [PATCH] fix: resolve CI/CD test failures and linting issues --- tests/test_converters/test_json.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_converters/test_json.py b/tests/test_converters/test_json.py index 3cc5848..67ebb67 100644 --- a/tests/test_converters/test_json.py +++ b/tests/test_converters/test_json.py @@ -1,10 +1,9 @@ """Tests for JSON converter.""" -import pytest import json +import pytest import tempfile import os -from pathlib import Path from config_convert.converters import JSONConverter @@ -63,14 +62,13 @@ class TestJSONConverter: os.unlink(path) def test_dump_file(self, converter, temp_dir, sample_json): - import shutil path = tempfile.mktemp(suffix=".json") try: converter.dump(sample_json, path) - result = json.loads(Path(path).read_text()) + result = json.loads(open(path).read()) assert result == sample_json finally: - if Path(path).exists(): + if os.path.exists(path): os.unlink(path) def test_invalid_json_raises(self, converter):