@@ -93,9 +93,8 @@ def test_containerized_notebook(runner, project_directory, test_database):
93
93
assert "unschedulable in full compute pool." in result .output
94
94
95
95
96
- @pytest .mark .qa_only
97
96
@pytest .mark .integration
98
- def test_containerized_notebook_incorrect_runtime_error_qa (
97
+ def test_containerized_notebook_incorrect_runtime_error (
99
98
runner , project_directory , test_database , alter_snowflake_yml
100
99
):
101
100
notebook_identifier = "containerized_notebook"
@@ -112,30 +111,3 @@ def test_containerized_notebook_incorrect_runtime_error_qa(
112
111
"invalid value 'NOT_EXISTING_RUNTIME_NAME' for property 'RUNTIME_NAME'"
113
112
in result .output
114
113
)
115
-
116
-
117
- @pytest .mark .no_qa
118
- @pytest .mark .integration
119
- def test_containerized_notebook_incorrect_runtime_error (
120
- runner , project_directory , test_database , alter_snowflake_yml
121
- ):
122
- notebook_identifier = "containerized_notebook"
123
- with project_directory ("notebook_containerized_v2" ) as project_directory :
124
- alter_snowflake_yml (
125
- project_directory / "snowflake.yml" ,
126
- f"entities.{ notebook_identifier } .runtime_name" ,
127
- "not_existing_runtime_name" ,
128
- )
129
- result = runner .invoke_with_connection (["notebook" , "deploy" ])
130
- assert result .exit_code == 0 , (
131
- "If this test fails here on github integration tests, "
132
- "remove this test and remove '@qa_only' mark from the test above"
133
- )
134
-
135
- # readable error message should be returned when trying to execute the notebook
136
- result = runner .invoke_with_connection (
137
- ["notebook" , "execute" , notebook_identifier ]
138
- )
139
- assert result .exit_code == 1 , result .output
140
- assert "Custom runtime" in result .output
141
- assert "runtimeName=NOT_EXISTING_RUNTIME_NAME is not supported" in result .output
0 commit comments