fix: resolve CI/CD test failures and linting issues
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import tempfile
|
import tempfile
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from config_convert.converters import ENVConverter
|
from config_convert.converters import ENVConverter
|
||||||
|
|
||||||
@@ -97,7 +96,6 @@ class TestENVConverter:
|
|||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
|
|
||||||
def test_dump_file(self, converter, temp_dir, sample_env):
|
def test_dump_file(self, converter, temp_dir, sample_env):
|
||||||
import shutil
|
|
||||||
path = tempfile.mktemp(suffix=".env")
|
path = tempfile.mktemp(suffix=".env")
|
||||||
try:
|
try:
|
||||||
data = converter.loads(sample_env)
|
data = converter.loads(sample_env)
|
||||||
@@ -105,7 +103,7 @@ class TestENVConverter:
|
|||||||
result = converter.load(path)
|
result = converter.load(path)
|
||||||
assert result == data
|
assert result == data
|
||||||
finally:
|
finally:
|
||||||
if Path(path).exists():
|
if os.path.exists(path):
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
|
|
||||||
def test_invalid_env_raises(self, converter):
|
def test_invalid_env_raises(self, converter):
|
||||||
|
|||||||
Reference in New Issue
Block a user