Scrapy, a fast high-level web crawling & scraping framework for Python.
feat: added test_post_data_raw_with_string_prefix
Jalil SA88c58a8c9ca6
diff --git a/tests/test_utils_curl.py b/tests/test_utils_curl.pyindex fd4612eba..1816db29b 100644--- a/tests/test_utils_curl.py+++ b/tests/test_utils_curl.py@@ -154,6 +154,15 @@ class CurlToRequestKwargsTest(unittest.TestCase):}self._test_command(curl_command, expected_result)+ def test_post_data_raw_with_string_prefix(self):+ curl_command = "curl 'https://www.example.org/' --data-raw $'{\"$filters\":\"Filter\u0021\"}'"+ expected_result = {+ "method": "POST",+ "url": "https://www.example.org/",+ "body": '{"$filters":"Filter!"}',+ }+ self._test_command(curl_command, expected_result)+def test_explicit_get_with_data(self):curl_command = "curl httpbin.org/anything -X GET --data asdf"expected_result = {