make linter happy
This commit is contained in:
parent
50974aa9b2
commit
6e490a9190
@ -101,11 +101,11 @@ def test_describe_alarms():
|
|||||||
conn.create_alarm(alarm_fixture(name="nfoobaz", action="afoobaz"))
|
conn.create_alarm(alarm_fixture(name="nfoobaz", action="afoobaz"))
|
||||||
conn.create_alarm(alarm_fixture(name="nbarfoo", action="abarfoo"))
|
conn.create_alarm(alarm_fixture(name="nbarfoo", action="abarfoo"))
|
||||||
conn.create_alarm(alarm_fixture(name="nbazfoo", action="abazfoo"))
|
conn.create_alarm(alarm_fixture(name="nbazfoo", action="abazfoo"))
|
||||||
|
|
||||||
enabled = alarm_fixture(name="enabled1", action=["abarfoo"])
|
enabled = alarm_fixture(name="enabled1", action=["abarfoo"])
|
||||||
enabled.add_alarm_action("arn:alarm")
|
enabled.add_alarm_action("arn:alarm")
|
||||||
conn.create_alarm(enabled)
|
conn.create_alarm(enabled)
|
||||||
|
|
||||||
alarms = conn.describe_alarms()
|
alarms = conn.describe_alarms()
|
||||||
alarms.should.have.length_of(5)
|
alarms.should.have.length_of(5)
|
||||||
alarms = conn.describe_alarms(alarm_name_prefix="nfoo")
|
alarms = conn.describe_alarms(alarm_name_prefix="nfoo")
|
||||||
@ -124,6 +124,7 @@ def test_describe_alarms():
|
|||||||
alarms = conn.describe_alarms()
|
alarms = conn.describe_alarms()
|
||||||
alarms.should.have.length_of(0)
|
alarms.should.have.length_of(0)
|
||||||
|
|
||||||
|
|
||||||
@mock_cloudwatch_deprecated
|
@mock_cloudwatch_deprecated
|
||||||
def test_get_metric_statistics():
|
def test_get_metric_statistics():
|
||||||
conn = boto.connect_cloudwatch()
|
conn = boto.connect_cloudwatch()
|
||||||
|
@ -141,6 +141,7 @@ def test_alarm_state():
|
|||||||
resp = client.describe_alarms()
|
resp = client.describe_alarms()
|
||||||
len(resp["MetricAlarms"]).should.equal(2)
|
len(resp["MetricAlarms"]).should.equal(2)
|
||||||
|
|
||||||
|
|
||||||
@mock_cloudwatch
|
@mock_cloudwatch
|
||||||
def test_put_metric_data_no_dimensions():
|
def test_put_metric_data_no_dimensions():
|
||||||
conn = boto3.client("cloudwatch", region_name="us-east-1")
|
conn = boto3.client("cloudwatch", region_name="us-east-1")
|
||||||
|
Loading…
Reference in New Issue
Block a user