Skip to content

Commit 7465ef3

Browse files
committed
tests: update starlette tests after TestClient parameter deprecation
1 parent b7294d9 commit 7465ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/contrib/asyncio/starlette_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def test_transaction_name_is_route(app, elasticapm_client):
348348
)
349349
def test_trailing_slash_redirect_detection(app, elasticapm_client, url, expected):
350350
client = TestClient(app)
351-
response = client.get(url, allow_redirects=False)
351+
response = client.get(url, follow_redirects=False)
352352
assert response.status_code == 307
353353
assert len(elasticapm_client.events[constants.TRANSACTION]) == 1
354354
for transaction in elasticapm_client.events[constants.TRANSACTION]:

0 commit comments

Comments
 (0)