Port test suite from nose to pytest.

This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
This commit is contained in:
Matěj Cepl 2020-10-06 07:54:49 +02:00
commit 77dc60ea97
146 changed files with 1172 additions and 1277 deletions

View file

@ -2,9 +2,8 @@
from __future__ import unicode_literals
import boto3
import tests.backport_assert_raises # noqa
from botocore.exceptions import ClientError
from nose.tools import assert_raises
import pytest
from moto import mock_sagemaker
import sure # noqa
@ -76,7 +75,7 @@ def test_delete_model():
@mock_sagemaker
def test_delete_model_not_found():
with assert_raises(ClientError) as err:
with pytest.raises(ClientError) as err:
boto3.client("sagemaker", region_name="us-east-1").delete_model(
ModelName="blah"
)