Skip to content
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
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ def run(self):
"scikit-learn", # Snowpark pandas 3rd party library testing
# plotly version restricted due to foreseen change in query counts in version 6.0.0+
"plotly<6.0.0", # Snowpark pandas 3rd party library testing
"snowflake-ml-python",
# TODO(SNOW-1938831): Test snowflake-ml-python on python 3.12 once
# snowflake-ml-python is available on python 3.12.
"snowflake-ml-python; python_version<'3.12'",
],
"localtest": [
"pandas",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

from tests.integ.utils.sql_counter import SqlCounter, sql_count_checker
from tests.utils import running_on_jenkins
from snowflake.cortex import Sentiment, Summarize, Translate

# snowflake-ml-python, which provides snowflake.cortex, may not be available in
# the test environment. If it's not available, skip all tests in this module.
cortex = pytest.importorskip("snowflake.cortex")
Sentiment = cortex.Sentiment
Summarize = cortex.Summarize
Translate = cortex.Translate


@pytest.mark.skipif(
Expand Down
Loading