fix: resolve CI/CD test failures and linting issues
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user