Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sql file to main branch to test git execute command in PR 1494 #1496

Merged
merged 5 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Select 'script in pascal case';
sfc-gh-jvasquezrojas marked this conversation as resolved.
Show resolved Hide resolved
17 changes: 17 additions & 0 deletions tests_integration/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading