File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Unit tests for fis-supported APIs."""
22
3+ from unittest import SkipTest
4+
35import boto3
46import pytest
57from botocore .exceptions import ClientError
68
7- from moto import mock_aws
9+ from moto import mock_aws , settings
10+ from moto .moto_api import state_manager
811
912# See our Development Tips on writing tests for hints on how to write good tests:
1013# http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html
@@ -626,7 +629,8 @@ def test_get_experiment_action_state_follows_the_experiment():
626629
627630@mock_aws
628631def test_get_experiment_state_transition_is_configurable ():
629- from moto .moto_api import state_manager
632+ if not settings .TEST_DECORATOR_MODE :
633+ raise SkipTest ("Can't set transition directly outside of DecoratorMode" )
630634
631635 state_manager .set_transition (
632636 "fis::experiment" , transition = {"progression" : "immediate" }
You can’t perform that action at this time.
0 commit comments