-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added additional check for new imports (#900)
* Added additional check for new imports fixed test Added check for imports Test and release notes * Post review fixes * Post review fixes * Post review fixes * Post Post review fixes * Post Post review fixes * Post Post review fixes
- Loading branch information
1 parent
998873d
commit 6a48f26
Showing
13 changed files
with
128 additions
and
9 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
4 changes: 4 additions & 0 deletions
4
tests_integration/test_data/projects/snowpark_with_import/.gitignore
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,4 @@ | ||
.packages/ | ||
.venv/ | ||
app.zip | ||
__pycache__ |
Empty file.
7 changes: 7 additions & 0 deletions
7
tests_integration/test_data/projects/snowpark_with_import/app/functions.py
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,7 @@ | ||
from __future__ import annotations | ||
|
||
from dummy_pkg_for_tests import shrubbery | ||
|
||
|
||
def hello_function(name: str) -> str: | ||
return shrubbery.knights_of_nii_says() |
5 changes: 5 additions & 0 deletions
5
tests_integration/test_data/projects/snowpark_with_import/requirements.txt
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,5 @@ | ||
snowflake-snowpark-python | ||
|
||
# Package below should not be in snowflake anaconda | ||
# To assure we have full control over it we use out own dummy pkg | ||
# https://pypi.org/project/dummy-pkg-for-tests/ |
14 changes: 14 additions & 0 deletions
14
tests_integration/test_data/projects/snowpark_with_import/snowflake.yml
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,14 @@ | ||
definition_version: 1 | ||
snowpark: | ||
project_name: "my_snowpark_project" | ||
stage_name: "TEST" | ||
src: "app/" | ||
functions: | ||
- name: test_func | ||
handler: "functions.hello_function" | ||
signature: | ||
- name: "name" | ||
type: "string" | ||
returns: string | ||
imports: | ||
- "@dev_deployment/dummy_pkg_for_tests.zip" |
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