Skip to content

Commit

Permalink
In progress: exploring testing when using @udf
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jfreeberg committed May 13, 2023
1 parent ae690f7 commit 2021826
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/udf/test_functions.py
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

1 comment on commit 2021826

@udf
Copy link

@udf udf commented on 2021826 May 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat.

Please sign in to comment.