File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 9
9
# or in the 'license' file accompanying this file. This file is
10
10
# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
- # language governing permissions and limitations under the License.
12
+ # language governing permissions and limitations under the License.
13
13
14
- from mock import Mock , patch
14
+ from __future__ import absolute_import
15
+
16
+ from mock import Mock , patch
15
17
import pytest
16
18
17
19
from sagemaker_inference import environment
32
34
33
35
def test_default_transformer ():
34
36
transformer = PyTorchTransformer ()
35
-
37
+
36
38
assert isinstance (transformer ._default_inference_handler , DefaultPytorchInferenceHandler )
37
39
assert transformer ._initialized is False
38
40
assert transformer ._environment is None
@@ -140,7 +142,8 @@ def test_default_transform_fn():
140
142
141
143
142
144
def test_run_handle_function ():
143
- def three_inputs_func (a , b , c ): pass
145
+ def three_inputs_func (a , b , c ):
146
+ pass
144
147
145
148
three_inputs_mock = Mock (spec = three_inputs_func )
146
149
a = Mock ()
You can’t perform that action at this time.
0 commit comments