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
|
|
@ -10,7 +10,7 @@ from uuid import UUID
|
|||
|
||||
from moto import mock_ecs
|
||||
from moto import mock_ec2
|
||||
from nose.tools import assert_raises
|
||||
import pytest
|
||||
|
||||
|
||||
@mock_ecs
|
||||
|
|
@ -860,7 +860,7 @@ def test_deregister_container_instance():
|
|||
containerInstances=[container_instance_id],
|
||||
startedBy="moto",
|
||||
)
|
||||
with assert_raises(Exception) as e:
|
||||
with pytest.raises(Exception) as e:
|
||||
ecs_client.deregister_container_instance(
|
||||
cluster=test_cluster_name, containerInstance=container_instance_id
|
||||
).should.have.raised(Exception)
|
||||
|
|
@ -952,7 +952,7 @@ def test_describe_container_instances():
|
|||
instance.keys().should.contain("pendingTasksCount")
|
||||
instance["registeredAt"].should.be.a("datetime.datetime")
|
||||
|
||||
with assert_raises(ClientError) as e:
|
||||
with pytest.raises(ClientError) as e:
|
||||
ecs_client.describe_container_instances(
|
||||
cluster=test_cluster_name, containerInstances=[]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue