From 84942fc526ef54fb943b30d94a0ffe3d27cba38d Mon Sep 17 00:00:00 2001 From: Nicholas Yager Date: Sat, 23 Sep 2023 17:50:54 -0400 Subject: [PATCH] test: Add assertions that confirm that versioned SQL files exist after running `version` command --- tests/integration/test_version_command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_version_command.py b/tests/integration/test_version_command.py index b9ed315..78408e2 100644 --- a/tests/integration/test_version_command.py +++ b/tests/integration/test_version_command.py @@ -399,5 +399,7 @@ def test_version_no_model_yaml(project): ["--debug", "version", "--select", "shared_model", "--project-path", proj_path], ) - print(result.stdout) assert result.exit_code == 0 + + assert (proj_path / "models" / "shared_model_v1.sql").exists() + assert (proj_path / "models" / "shared_model_v2.sql").exists()