From d52d8bcc0ac3dcf1a4f208bfbbf0d8794c75faec Mon Sep 17 00:00:00 2001 From: Ross Patterson Date: Thu, 21 Aug 2025 00:27:25 -0700 Subject: [PATCH] test(throttle): Match modified assertion text If it were my test, I'd only make assertions on the spirit of error message text necessary to confirm it's the right error message and not another. --- tests/integration/plugins/test_throttle_protection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/plugins/test_throttle_protection.py b/tests/integration/plugins/test_throttle_protection.py index f28744ab..b5007ec5 100644 --- a/tests/integration/plugins/test_throttle_protection.py +++ b/tests/integration/plugins/test_throttle_protection.py @@ -271,8 +271,10 @@ class TestResolutionAssert: ) expected_message = ( - "Entry Mock Entry 20-3 downloaded at a low resolution (640x360) which is classified as throttle. " - "Stopping additional downloads. Disable using the override variable `enable_resolution_assert: False`" + "Entry Mock Entry 20-3 downloaded at a low resolution (640x360), " + "you've probably been throttled. " + "Stopping further downloads, wait a few hours and try again. " + "Disable using the override variable `enable_resolution_assert: False`" ) with (