diff --git a/tests/test_cli.py b/tests/test_cli.py index 82d4879..3412eaf 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -54,17 +54,18 @@ def test_cli_validate_error(): def test_cli_update(): from tempfile import TemporaryDirectory + from pathlib import Path from dfschema.cli import app from dfschema.core.config import CURRENT_PROTOCOL_VERSION with TemporaryDirectory() as tmpdirname: - output_path = f"{tmpdirname}/active_sales_v2.json" + output_path = Path(tmpdirname) / "active_sales_v2.json" result = runner.invoke( app, [ "update", "tests/test_schemas/v1/good/active_sales.json", - output_path, + str(output_path), ], )