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
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from config_convert.converters import TOMLConverter
|
from config_convert.converters import TOMLConverter
|
||||||
@@ -63,7 +62,6 @@ class TestTOMLConverter:
|
|||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
|
|
||||||
def test_dump_file(self, converter, temp_dir, sample_toml):
|
def test_dump_file(self, converter, temp_dir, sample_toml):
|
||||||
import shutil
|
|
||||||
path = tempfile.mktemp(suffix=".toml")
|
path = tempfile.mktemp(suffix=".toml")
|
||||||
try:
|
try:
|
||||||
if sys.version_info >= (3, 11):
|
if sys.version_info >= (3, 11):
|
||||||
@@ -75,7 +73,7 @@ class TestTOMLConverter:
|
|||||||
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_toml_raises(self, converter):
|
def test_invalid_toml_raises(self, converter):
|
||||||
|
|||||||
Reference in New Issue
Block a user