File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def test_alert_channels_api_get_by_guid(api):
47
47
response = api .alert_channels .get_by_guid (guid = alert_channel_guid )
48
48
49
49
assert 'data' in response .keys ()
50
- assert response ["data" ][0 ][ "intgGuid" ] == alert_channel_guid
50
+ assert response ["data" ]["intgGuid" ] == alert_channel_guid
51
51
52
52
53
53
def test_alert_channels_api_create (api ):
@@ -63,7 +63,7 @@ def test_alert_channels_api_create(api):
63
63
assert 'data' in response .keys ()
64
64
65
65
global INTEGRATION_GUID
66
- INTEGRATION_GUID = response ["data" ][0 ][ "intgGuid" ]
66
+ INTEGRATION_GUID = response ["data" ]["intgGuid" ]
67
67
68
68
69
69
def test_alert_channels_api_search (api ):
@@ -94,8 +94,8 @@ def test_alert_channels_api_update(api):
94
94
)
95
95
96
96
assert 'data' in response .keys ()
97
- assert response ["data" ][0 ][ "name" ] == new_name
98
- assert response ["data" ][0 ][ "enabled" ] == int (new_enabled )
97
+ assert response ["data" ]["name" ] == new_name
98
+ assert response ["data" ]["enabled" ] == int (new_enabled )
99
99
100
100
101
101
def test_alert_channels_api_delete (api ):
You can’t perform that action at this time.
0 commit comments