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

@ -6,7 +6,7 @@ import boto3
import sure # noqa
from botocore.exceptions import ClientError
from nose.tools import assert_raises
import pytest
from moto.core import ACCOUNT_ID
from moto.core.exceptions import JsonRESTError
@ -331,7 +331,7 @@ def test_put_events():
response["FailedEntryCount"].should.equal(0)
response["Entries"].should.have.length_of(1)
with assert_raises(ClientError):
with pytest.raises(ClientError):
client.put_events(Entries=[event] * 20)