aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Den4200 <[email protected]>2021-03-27 13:49:22 -0400
committerGravatar Den4200 <[email protected]>2021-03-27 13:49:22 -0400
commit2759409123d458a4a0a274b835bebb3cc728b83a (patch)
treeae379fd6953c26e4dc96ced37b0058a0cf4b6128 /tests
parentRemove the old DMRelay cog. (diff)
Fix tests for paste uploads.
Accounts for no redirects on extensions that are not `.py`.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/utils/test_services.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/utils/test_services.py b/tests/bot/utils/test_services.py
index 1b48f6560..3b71022db 100644
--- a/tests/bot/utils/test_services.py
+++ b/tests/bot/utils/test_services.py
@@ -30,9 +30,9 @@ class PasteTests(unittest.IsolatedAsyncioTestCase):
"""Url with specified extension is returned on successful requests."""
key = "paste_key"
test_cases = (
- (f"https://paste_service.com/{key}.txt", "txt"),
+ (f"https://paste_service.com/{key}.txt?noredirect", "txt"),
(f"https://paste_service.com/{key}.py", "py"),
- (f"https://paste_service.com/{key}", ""),
+ (f"https://paste_service.com/{key}?noredirect", ""),
)
response = MagicMock(
json=AsyncMock(return_value={"key": key})