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

Function test_default_options_overwrite

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

Source from the content-addressed store, hash-verified

48
49
50def test_default_options_overwrite(httpbin):
51 env = MockEnvironment()
52 env.config['default_options'] = ['--form']
53 env.config.save()
54 r = http('--json', httpbin + '/post', 'foo=bar', env=env)
55 assert r.json['json'] == {
56 "foo": "bar"
57 }
58
59
60@pytest.mark.skipif(is_windows, reason='XDG_CONFIG_HOME needs *nix')

Callers

nothing calls this directly

Calls 3

MockEnvironmentClass · 0.85
httpFunction · 0.85
saveMethod · 0.80

Tested by

no test coverage detected