@@ -98,8 +98,8 @@ def test_data_location_does_not_call_default_bucket(sagemaker_session):
98
98
assert not sagemaker_session .default_bucket .called
99
99
100
100
101
- def test_prepare_for_training ():
102
- pca = PCA (num_components = 55 , ** COMMON_ARGS )
101
+ def test_prepare_for_training (sagemaker_session ):
102
+ pca = PCA (num_components = 55 , sagemaker_session = sagemaker_session , ** COMMON_ARGS )
103
103
104
104
train = [[1.0 , 2.0 , 3.0 ], [4.0 , 5.0 , 6.0 ], [7.0 , 8.0 , 8.0 ], [44.0 , 55.0 , 66.0 ]]
105
105
labels = [99 , 85 , 87 , 2 ]
@@ -110,8 +110,8 @@ def test_prepare_for_training():
110
110
assert pca .mini_batch_size == 1
111
111
112
112
113
- def test_prepare_for_training_list ():
114
- pca = PCA (num_components = 55 , ** COMMON_ARGS )
113
+ def test_prepare_for_training_list (sagemaker_session ):
114
+ pca = PCA (num_components = 55 , sagemaker_session = sagemaker_session , ** COMMON_ARGS )
115
115
116
116
train = [[1.0 , 2.0 , 3.0 ], [4.0 , 5.0 , 6.0 ], [7.0 , 8.0 , 8.0 ], [44.0 , 55.0 , 66.0 ]]
117
117
labels = [99 , 85 , 87 , 2 ]
@@ -122,8 +122,8 @@ def test_prepare_for_training_list():
122
122
assert pca .mini_batch_size == 1
123
123
124
124
125
- def test_prepare_for_training_list_no_train_channel ():
126
- pca = PCA (num_components = 55 , ** COMMON_ARGS )
125
+ def test_prepare_for_training_list_no_train_channel (sagemaker_session ):
126
+ pca = PCA (num_components = 55 , sagemaker_session = sagemaker_session , ** COMMON_ARGS )
127
127
128
128
train = [[1.0 , 2.0 , 3.0 ], [4.0 , 5.0 , 6.0 ], [7.0 , 8.0 , 8.0 ], [44.0 , 55.0 , 66.0 ]]
129
129
labels = [99 , 85 , 87 , 2 ]
0 commit comments