File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/test/integration/fastapi Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import requests
2
2
from fastapi import FastAPI
3
3
4
-
5
4
app = FastAPI ()
6
5
7
6
@@ -18,5 +17,8 @@ def invoke_requests():
18
17
19
18
@app .get ("/invoke-requests-large-response" )
20
19
def invoke_requests_big_response ():
21
- response = requests .get ("https://api.publicapis.org/entries" )
20
+ response = requests .get (
21
+ "http://universities.hipolabs.com/search?country=United+States"
22
+ )
23
+ response .raise_for_status ()
22
24
return response .json ()
Original file line number Diff line number Diff line change @@ -107,12 +107,10 @@ def test_large_span_attribute_size_default_max_size(self):
107
107
children = spans_container .get_non_internal_children ()
108
108
self .assertEqual (1 , len (children ))
109
109
children_attributes = children [0 ]["attributes" ]
110
- print ("children_attributes" )
111
- print (children_attributes )
112
110
self .assertEqual (children_attributes ["http.method" ], "GET" )
113
111
self .assertEqual (
114
112
children_attributes ["http.url" ],
115
- "https ://api.publicapis.org/entries " ,
113
+ "http ://universities.hipolabs.com/search?country=United+States " ,
116
114
)
117
115
self .assertEqual (len (children_attributes ["http.response.body" ]), 2048 )
118
116
self .assertEqual (children_attributes ["http.status_code" ], 200 )
You can’t perform that action at this time.
0 commit comments