MCPcopy Index your code
hub / github.com/httpie/cli / test_config_file_not_valid

Function test_config_file_not_valid

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

Source from the content-addressed store, hash-verified

24
25
26def 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')

Callers

nothing calls this directly

Calls 3

MockEnvironmentClass · 0.85
httpFunction · 0.85

Tested by

no test coverage detected