-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0712ac2
commit 9af0dba
Showing
5 changed files
with
19 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ def combine(string_a: str, string_b: str) -> str: | |
""" | ||
A sample UDF implementation | ||
""" | ||
|
||
return string_a + string_b |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
""" | ||
Fixtures and configurations for the PyTest suite | ||
""" | ||
|
||
import pytest | ||
from snowflake.snowpark.session import Session | ||
from src.util.local import get_env_var_config | ||
|
||
@pytest.fixture | ||
def session(scope='module'): | ||
# pylint: disable=unused-argument | ||
""" | ||
Creates a Session object for tests | ||
""" | ||
|
||
return Session.builder.configs(get_env_var_config()).create() |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
""" | ||
Tests for the procedure module. | ||
""" | ||
|
||
from snowflake.snowpark.session import Session | ||
from src.app import run | ||
|
||
|
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