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):
4747 response = api .alert_channels .get_by_guid (guid = alert_channel_guid )
4848
4949 assert 'data' in response .keys ()
50- assert response ["data" ][0 ][ "intgGuid" ] == alert_channel_guid
50+ assert response ["data" ]["intgGuid" ] == alert_channel_guid
5151
5252
5353def test_alert_channels_api_create (api ):
@@ -63,7 +63,7 @@ def test_alert_channels_api_create(api):
6363 assert 'data' in response .keys ()
6464
6565 global INTEGRATION_GUID
66- INTEGRATION_GUID = response ["data" ][0 ][ "intgGuid" ]
66+ INTEGRATION_GUID = response ["data" ]["intgGuid" ]
6767
6868
6969def test_alert_channels_api_search (api ):
@@ -94,8 +94,8 @@ def test_alert_channels_api_update(api):
9494 )
9595
9696 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 )
9999
100100
101101def test_alert_channels_api_delete (api ):
You can’t perform that action at this time.
0 commit comments