Skip to content

Commit a54a444

Browse files
author
Stephen Cefali
authored
fix broken py3 test (#21144)
1 parent 2ede8d7 commit a54a444

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/sentry/integrations/vsts/test_client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def test_refreshes_expired_token(self):
3737
assert responses.calls[-2].request.url == "https://app.vssps.visualstudio.com/oauth2/token"
3838

3939
# Then we request the Projects with the new token
40-
assert responses.calls[
41-
-1
42-
].request.url == u"{}_apis/projects?%24top=100&%24skip=0&stateFilter=WellFormed".format(
40+
assert responses.calls[-1].request.url.split("?")[0] == u"{}_apis/projects".format(
4341
self.vsts_base_url.lower()
4442
)
4543

@@ -79,9 +77,7 @@ def test_refreshes_expired_token_limited_scopes(self):
7977
assert responses.calls[-2].request.url == "https://app.vssps.visualstudio.com/oauth2/token"
8078

8179
# Then we request the Projects with the new token
82-
assert responses.calls[
83-
-1
84-
].request.url == u"{}_apis/projects?%24top=100&%24skip=0&stateFilter=WellFormed".format(
80+
assert responses.calls[-1].request.url.split("?")[0] == u"{}_apis/projects".format(
8581
self.vsts_base_url.lower()
8682
)
8783

0 commit comments

Comments
 (0)