(httpbin)
| 24 | |
| 25 | |
| 26 | def test_config_file_not_valid(httpbin): |
| 27 | env = MockEnvironment() |
| 28 | env.create_temp_config_dir() |
| 29 | (env.config_dir / Config.FILENAME).write_text('{invalid json}', encoding=UTF8) |
| 30 | r = http(httpbin + '/get', env=env) |
| 31 | assert HTTP_OK in r |
| 32 | assert 'http: warning' in r.stderr |
| 33 | assert 'invalid config file' in r.stderr |
| 34 | |
| 35 | |
| 36 | @pytest.mark.skipif(is_windows, reason='cannot chmod 000 on Windows') |
nothing calls this directly
no test coverage detected