From c0ee2091f688f04b010fa4bde88aa9d1b93895e3 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 07:32:24 +0000 Subject: [PATCH] fix: resolve CI/CD test failures and linting issues --- tests/test_converters/test_toml.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_converters/test_toml.py b/tests/test_converters/test_toml.py index 31505a3..68915bf 100644 --- a/tests/test_converters/test_toml.py +++ b/tests/test_converters/test_toml.py @@ -3,7 +3,6 @@ import pytest import tempfile import os -from pathlib import Path import sys from config_convert.converters import TOMLConverter @@ -21,9 +20,9 @@ class TestTOMLConverter: def test_loads_nested_toml(self, converter): data = """[database] - host = "localhost" - port = 5432 - """ +host = "localhost" +port = 5432 +""" result = converter.loads(data) assert result == {"database": {"host": "localhost", "port": 5432}} @@ -63,7 +62,6 @@ class TestTOMLConverter: os.unlink(path) def test_dump_file(self, converter, temp_dir, sample_toml): - import shutil path = tempfile.mktemp(suffix=".toml") try: if sys.version_info >= (3, 11): @@ -75,7 +73,7 @@ class TestTOMLConverter: result = converter.load(path) assert result == data finally: - if Path(path).exists(): + if os.path.exists(path): os.unlink(path) def test_invalid_toml_raises(self, converter):