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

This commit is contained in:
2026-02-04 07:32:25 +00:00
parent c0ee2091f6
commit 2095217d0f

View File

@@ -3,7 +3,6 @@
import pytest
import tempfile
import os
from pathlib import Path
from config_convert.converters import ENVConverter
@@ -97,7 +96,6 @@ class TestENVConverter:
os.unlink(path)
def test_dump_file(self, converter, temp_dir, sample_env):
import shutil
path = tempfile.mktemp(suffix=".env")
try:
data = converter.loads(sample_env)
@@ -105,7 +103,7 @@ class TestENVConverter:
result = converter.load(path)
assert result == data
finally:
if Path(path).exists():
if os.path.exists(path):
os.unlink(path)
def test_invalid_env_raises(self, converter):