(httpbin)
| 48 | |
| 49 | |
| 50 | def 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') |
nothing calls this directly
no test coverage detected