MCPcopy
hub / github.com/httpie/cli / test_default_options

Function test_default_options

tests/test_config.py:16–23  ·  view source on GitHub ↗
(httpbin)

Source from the content-addressed store, hash-verified

14
15
16def test_default_options(httpbin):
17 env = MockEnvironment()
18 env.config['default_options'] = ['--form']
19 env.config.save()
20 r = http(httpbin + '/post', 'foo=bar', env=env)
21 assert r.json['form'] == {
22 "foo": "bar"
23 }
24
25
26def test_config_file_not_valid(httpbin):

Callers

nothing calls this directly

Calls 3

MockEnvironmentClass · 0.85
httpFunction · 0.85
saveMethod · 0.80

Tested by

no test coverage detected