Skip to content

Commit 6f310a6

Browse files
authored
chore: changed 3rd party for big-response query (#130) [skip ci]
1 parent 87cf7e9 commit 6f310a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/integration/fastapi/app/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import requests
22
from fastapi import FastAPI
33

4-
54
app = FastAPI()
65

76

@@ -18,5 +17,8 @@ def invoke_requests():
1817

1918
@app.get("/invoke-requests-large-response")
2019
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()
2224
return response.json()

src/test/integration/fastapi/tests/test_fastapi.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ def test_large_span_attribute_size_default_max_size(self):
107107
children = spans_container.get_non_internal_children()
108108
self.assertEqual(1, len(children))
109109
children_attributes = children[0]["attributes"]
110-
print("children_attributes")
111-
print(children_attributes)
112110
self.assertEqual(children_attributes["http.method"], "GET")
113111
self.assertEqual(
114112
children_attributes["http.url"],
115-
"https://api.publicapis.org/entries",
113+
"http://universities.hipolabs.com/search?country=United+States",
116114
)
117115
self.assertEqual(len(children_attributes["http.response.body"]), 2048)
118116
self.assertEqual(children_attributes["http.status_code"], 200)

0 commit comments

Comments
 (0)