Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

Fixing the "Unknown Status Code" test

Karim shoair723a545061b6
diff --git a/tests/fetchers/test_utils.py b/tests/fetchers/test_utils.py
index 0392388..5fc1906 100644
--- a/tests/fetchers/test_utils.py
+++ b/tests/fetchers/test_utils.py
@@ -126,4 +126,4 @@ class TestPlayWrightFetcher(unittest.TestCase):
for status_code, expected_status_text in self.status_map.items():
self.assertEqual(StatusText.get(status_code), expected_status_text)
- self.assertEqual(1000, "Unknown Status Code")
+ self.assertEqual(StatusText.get(1000), "Unknown Status Code")