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:
parent
47dbad291e
commit
77dc60ea97
146 changed files with 1172 additions and 1277 deletions
1
tests/test_route53/__init__.py
Normal file
1
tests/test_route53/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
# This file is intentionally left blank.
|
||||
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue