File tree 1 file changed +3
-5
lines changed
services/autoscaling/tests/unit
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import pytest
7
7
from aws_library .ec2 import EC2InstanceType , Resources
8
+ from aws_library .ec2 ._errors import EC2InstanceNotFoundError
8
9
from faker import Faker
9
10
from pydantic import ByteSize
10
- from simcore_service_autoscaling .core .errors import (
11
- ConfigurationError ,
12
- Ec2InstanceNotFoundError ,
13
- )
11
+ from simcore_service_autoscaling .core .errors import ConfigurationError
14
12
from simcore_service_autoscaling .utils .utils_ec2 import (
15
13
closest_instance_policy ,
16
14
compose_user_data ,
@@ -30,7 +28,7 @@ async def test_find_best_fitting_ec2_instance_with_no_instances_raises():
30
28
async def test_find_best_fitting_ec2_instance_closest_instance_policy_with_resource_0_raises (
31
29
random_fake_available_instances : list [EC2InstanceType ],
32
30
):
33
- with pytest .raises (Ec2InstanceNotFoundError ):
31
+ with pytest .raises (EC2InstanceNotFoundError ):
34
32
find_best_fitting_ec2_instance (
35
33
allowed_ec2_instances = random_fake_available_instances ,
36
34
resources = Resources (cpus = 0 , ram = ByteSize (0 )),
You can’t perform that action at this time.
0 commit comments