(httpbin)
| 14 | |
| 15 | |
| 16 | def 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 | |
| 26 | def test_config_file_not_valid(httpbin): |
nothing calls this directly
no test coverage detected