diff options
author | 2021-03-27 13:49:22 -0400 | |
---|---|---|
committer | 2021-03-27 13:49:22 -0400 | |
commit | 2759409123d458a4a0a274b835bebb3cc728b83a (patch) | |
tree | ae379fd6953c26e4dc96ced37b0058a0cf4b6128 /tests | |
parent | Remove 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.py | 4 |
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}) |