Skip to content

Commit abd6852

Browse files
committed
Fix local import patch path
1 parent d8b599b commit abd6852

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/integ/sagemaker/serve/test_serve_pt_happy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13+
# flake8: noqa: F631
1314
from __future__ import absolute_import
1415

1516
import pytest
@@ -221,7 +222,7 @@ def test_happy_pytorch_sagemaker_endpoint(
221222
)
222223
if caught_ex:
223224
logger.exception(caught_ex)
224-
assert ( # noqa: F631
225+
assert (
225226
False,
226227
), f"{caught_ex} was thrown when running pytorch squeezenet sagemaker endpoint test"
227228

tests/unit/sagemaker/serve/utils/test_hardware_detector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def test_format_instance_type_without_ml_success():
101101
assert formatted_instance_type == "g5.48xlarge"
102102

103103

104-
@patch("sagemaker.serve.utils.hardware_detector.estimate_command_parser")
105-
@patch("sagemaker.serve.utils.hardware_detector.gather_data")
104+
@patch("accelerate.commands.estimate.estimate_command_parser")
105+
@patch("accelerate.commands.estimate.gather_data")
106106
def test_total_inference_model_size_mib(
107107
mock_gather_data,
108108
mock_parser,

0 commit comments

Comments
 (0)