From b45c614a8eced7c8b192e77bdab2ddc6b630f80c Mon Sep 17 00:00:00 2001 From: Jorge Vasquez Rojas Date: Fri, 30 Aug 2024 00:44:28 -0600 Subject: [PATCH] Add sql file to main branch to test git execute command in PR 1494 (#1496) Add file to test in following pr --- .../stage_execute/ScriptInPascalCase.sql | 1 + tests_integration/test_git.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests_integration/test_data/projects/stage_execute/ScriptInPascalCase.sql diff --git a/tests_integration/test_data/projects/stage_execute/ScriptInPascalCase.sql b/tests_integration/test_data/projects/stage_execute/ScriptInPascalCase.sql new file mode 100644 index 0000000000..7385235765 --- /dev/null +++ b/tests_integration/test_data/projects/stage_execute/ScriptInPascalCase.sql @@ -0,0 +1 @@ +Select 'script in pascal case'; diff --git a/tests_integration/test_git.py b/tests_integration/test_git.py index 9be981e6c5..9dd31de7f6 100644 --- a/tests_integration/test_git.py +++ b/tests_integration/test_git.py @@ -260,6 +260,23 @@ def test_copy_error(runner, sf_git_repository): ) +@pytest.mark.skip(reason="This will be enabled in following PR") +@pytest.mark.integration +def test_execute_with_name_in_pascal_case( + runner, test_database, sf_git_repository, snapshot +): + result = runner.invoke_with_connection_json( + [ + "git", + "execute", + f"@{sf_git_repository}/branches/main/tests_integration/test_data/projects/stage_execute/ScriptInPascalCase.sql", + ] + ) + + assert result.exit_code == 0 + assert result.json == snapshot + + @pytest.mark.integration def test_execute(runner, test_database, sf_git_repository, snapshot): result = runner.invoke_with_connection_json(