fix: resolve CI/CD test failures and linting issues
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled

This commit is contained in:
2026-02-04 07:32:24 +00:00
parent 1085fbe3ee
commit c0ee2091f6

View File

@@ -3,7 +3,6 @@
import pytest
import tempfile
import os
from pathlib import Path
import sys
from config_convert.converters import TOMLConverter
@@ -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):