1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import pytest
16-
1715import bigframes .core .sql .ml
1816
1917
@@ -25,6 +23,7 @@ def test_create_model_basic(snapshot):
2523 )
2624 snapshot .assert_match (sql , "create_model_basic.sql" )
2725
26+
2827def test_create_model_replace (snapshot ):
2928 sql = bigframes .core .sql .ml .create_model_ddl (
3029 model_name = "my_model" ,
@@ -34,6 +33,7 @@ def test_create_model_replace(snapshot):
3433 )
3534 snapshot .assert_match (sql , "create_model_replace.sql" )
3635
36+
3737def test_create_model_if_not_exists (snapshot ):
3838 sql = bigframes .core .sql .ml .create_model_ddl (
3939 model_name = "my_model" ,
@@ -43,6 +43,7 @@ def test_create_model_if_not_exists(snapshot):
4343 )
4444 snapshot .assert_match (sql , "create_model_if_not_exists.sql" )
4545
46+
4647def test_create_model_transform (snapshot ):
4748 sql = bigframes .core .sql .ml .create_model_ddl (
4849 model_name = "my_model" ,
@@ -52,6 +53,7 @@ def test_create_model_transform(snapshot):
5253 )
5354 snapshot .assert_match (sql , "create_model_transform.sql" )
5455
56+
5557def test_create_model_remote (snapshot ):
5658 sql = bigframes .core .sql .ml .create_model_ddl (
5759 model_name = "my_remote_model" ,
@@ -62,6 +64,7 @@ def test_create_model_remote(snapshot):
6264 )
6365 snapshot .assert_match (sql , "create_model_remote.sql" )
6466
67+
6568def test_create_model_remote_default (snapshot ):
6669 sql = bigframes .core .sql .ml .create_model_ddl (
6770 model_name = "my_remote_model" ,
@@ -70,6 +73,7 @@ def test_create_model_remote_default(snapshot):
7073 )
7174 snapshot .assert_match (sql , "create_model_remote_default.sql" )
7275
76+
7377def test_create_model_training_data_and_holiday (snapshot ):
7478 sql = bigframes .core .sql .ml .create_model_ddl (
7579 model_name = "my_arima_model" ,
@@ -79,6 +83,7 @@ def test_create_model_training_data_and_holiday(snapshot):
7983 )
8084 snapshot .assert_match (sql , "create_model_training_data_and_holiday.sql" )
8185
86+
8287def test_create_model_list_option (snapshot ):
8388 sql = bigframes .core .sql .ml .create_model_ddl (
8489 model_name = "my_model" ,
0 commit comments