File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/snuba/api/endpoints Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def test_simple(self):
7676 format = "json" ,
7777 )
7878 assert response .status_code == 200 , response .content
79- data = response .data
79+ data = response .data [ "data" ]
8080 assert len (data ) == 1
8181 log_data = data [0 ]
8282 assert log_data ["project.id" ] == self .project .id
@@ -105,7 +105,7 @@ def test_multiple_traces(self):
105105 format = "json" ,
106106 )
107107 assert response .status_code == 200 , response .content
108- data = response .data
108+ data = response .data [ "data" ]
109109 assert len (data ) == 2
110110 log_data = data [0 ]
111111 assert log_data ["project.id" ] == self .project .id
@@ -138,7 +138,7 @@ def test_orderby(self):
138138 format = "json" ,
139139 )
140140 assert response .status_code == 200 , response .content
141- data = response .data
141+ data = response .data [ "data" ]
142142 assert len (data ) == 2
143143 log_data = data [0 ]
144144 assert log_data ["project.id" ] == self .project .id
@@ -196,7 +196,7 @@ def test_cross_project_query(self):
196196 format = "json" ,
197197 )
198198 assert response .status_code == 200 , response .content
199- data = response .data
199+ data = response .data [ "data" ]
200200 assert len (data ) == 2
201201 log_data = data [0 ]
202202 assert log_data ["project.id" ] == self .project .id
You can’t perform that action at this time.
0 commit comments