fix: resolve CI/CD test and lint failures
This commit is contained in:
@@ -68,8 +68,7 @@ class TestLoadData:
|
||||
assert data["name"] == "test-project"
|
||||
assert data["version"] == "1.0.0"
|
||||
|
||||
def test_load_yaml_file(self):
|
||||
data = load_data(os.path.join(FIXTURES_DIR, "sample.yaml"))
|
||||
def test_load_yaml_file(self):n data = load_data(os.path.join(FIXTURES_DIR, "sample.yaml"))
|
||||
assert data["name"] == "test-project"
|
||||
assert data["version"] == "1.0.0"
|
||||
|
||||
@@ -133,9 +132,7 @@ class TestDumpData:
|
||||
|
||||
def test_dump_to_file(self):
|
||||
data = {"name": "test"}
|
||||
with tempfile.NamedTemporaryFile(
|
||||
mode="w", suffix=".json", delete=False
|
||||
) as f:
|
||||
with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as f:
|
||||
output_path = f.name
|
||||
try:
|
||||
dump_data(data, "json", output_path)
|
||||
|
||||
Reference in New Issue
Block a user