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

@ -0,0 +1 @@
# This file is intentionally left blank.

View file

@ -10,7 +10,7 @@ import sure # noqa
import uuid
import botocore
from nose.tools import assert_raises
import pytest
from moto import mock_route53, mock_route53_deprecated
@ -855,7 +855,7 @@ def test_change_resource_record_invalid():
],
}
with assert_raises(botocore.exceptions.ClientError):
with pytest.raises(botocore.exceptions.ClientError):
conn.change_resource_record_sets(
HostedZoneId=hosted_zone_id, ChangeBatch=invalid_a_record_payload
)
@ -878,7 +878,7 @@ def test_change_resource_record_invalid():
],
}
with assert_raises(botocore.exceptions.ClientError):
with pytest.raises(botocore.exceptions.ClientError):
conn.change_resource_record_sets(
HostedZoneId=hosted_zone_id, ChangeBatch=invalid_cname_record_payload
)