Skip to content

Commit b79137a

Browse files
committed
fix test
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent 26b5083 commit b79137a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
`AWSFaultInjectionSimulatorEC2Access` instead of creating new ones
1111
- Drop `logzero`
1212
- Drop support for Python 3.7 which has been EOL since June 2023
13+
- Fixed EMR test to use the appropriate `moto`
1314

1415
## [0.31.1][] - 2024-01-22
1516

tests/emr/test_emr_actions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pytest
77
from botocore.exceptions import ClientError
88
from chaoslib.exceptions import FailedActivity
9-
from moto import mock_emr
9+
from moto import mock_aws
1010

1111
from chaosaws.emr.actions import (
1212
modify_cluster,
@@ -34,7 +34,7 @@ def mock_client_error(*args, **kwargs):
3434
)
3535

3636

37-
@mock_emr
37+
@mock_aws
3838
class TestEmrActionsMoto:
3939
def setup_method(self, *args, **kwargs):
4040
config = os.path.join(data_path, "cluster_properties.json")

tests/emr/test_emr_probes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pytest
77
from botocore.exceptions import ClientError
88
from chaoslib.exceptions import FailedActivity
9-
from moto import mock_emr
9+
from moto import mock_aws
1010

1111
from chaosaws.emr.probes import (
1212
describe_cluster,
@@ -35,7 +35,7 @@ def mock_client_error(*args, **kwargs):
3535
)
3636

3737

38-
@mock_emr
38+
@mock_aws
3939
class TestEmrProbesMoto:
4040
def setup_method(self, *args, **kwargs):
4141
config = os.path.join(data_path, "cluster_properties.json")

0 commit comments

Comments
 (0)