-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In progress: exploring testing when using @udf
- Loading branch information
1 parent
ae690f7
commit 2021826
Showing
1 changed file
with
10 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
from src.udf.functions import combine | ||
|
||
import pytest | ||
from snowflake.snowpark.session import Session | ||
from src.util.local import get_env_var_config | ||
|
||
def test_combine(): | ||
@pytest.fixture | ||
def session(): | ||
return Session.builder.configs(get_env_var_config()).create() | ||
|
||
def test_combine(session): | ||
from src.udf.functions import combine | ||
expected = "hello world" | ||
actual = combine("hello ", "world") | ||
import pdb; pdb.set_trace() | ||
assert expected == actual |
2021826
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat.