MCPcopy
hub / github.com/scrapy/scrapy / test_from_curl_with_kwargs

Method test_from_curl_with_kwargs

tests/test_http_request.py:441–446  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

439 }
440
441 def test_from_curl_with_kwargs(self):
442 r = self.request_class.from_curl(
443 'curl -X PATCH "http://example.org"', method="POST", meta={"key": "value"}
444 )
445 assert r.method == "POST"
446 assert r.meta == {"key": "value"}
447
448 def test_from_curl_ignore_unknown_options(self):
449 # By default: it works and ignores the unknown options: --foo and -z

Callers

nothing calls this directly

Calls 1

from_curlMethod · 0.80

Tested by

no test coverage detected