-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alter the tests so we can run rpc tests on snowflake
- Loading branch information
Jacob Beck
committed
Jul 27, 2020
1 parent
92a493c
commit 3611f2d
Showing
14 changed files
with
209 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import pytest | ||
|
||
from .util import ( | ||
get_querier, | ||
ProjectDefinition, | ||
) | ||
|
||
|
||
@pytest.mark.supported('any') | ||
def test_rpc_run_sql_nohang( | ||
project_root, profiles_root, dbt_profile, unique_schema | ||
): | ||
project = ProjectDefinition( | ||
models={'my_model.sql': 'select 1 as id'} | ||
) | ||
querier_ctx = get_querier( | ||
project_def=project, | ||
project_dir=project_root, | ||
profiles_dir=profiles_root, | ||
schema=unique_schema, | ||
test_kwargs={}, | ||
) | ||
with querier_ctx as querier: | ||
querier.async_wait_for_result(querier.run_sql('select 1 as id')) | ||
|
||
|
||
@pytest.mark.supported('snowflake') | ||
def test_snowflake_rpc_run_sql_keepalive_nohang( | ||
project_root, profiles_root, dbt_profile, unique_schema | ||
): | ||
project = ProjectDefinition( | ||
models={'my_model.sql': 'select 1 as id'} | ||
) | ||
querier_ctx = get_querier( | ||
project_def=project, | ||
project_dir=project_root, | ||
profiles_dir=profiles_root, | ||
schema=unique_schema, | ||
test_kwargs={}, | ||
target='keepalives', | ||
) | ||
with querier_ctx as querier: | ||
querier.async_wait_for_result(querier.run_sql('select 1 as id')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.