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

Function test_fetch_broken_json

tests/test_update_warnings.py:103–115  ·  view source on GitHub ↗
(static_fetch_data, without_warnings)

Source from the content-addressed store, hash-verified

101
102
103def test_fetch_broken_json(static_fetch_data, without_warnings):
104 with open(without_warnings.config.version_info_file, 'w') as stream:
105 stream.write('$$broken$$')
106
107 http('fetch_updates', '--daemon', env=without_warnings)
108
109 with open(without_warnings.config.version_info_file) as stream:
110 version_data = json.load(stream)
111
112 assert (
113 version_data['last_released_versions'][BUILD_CHANNEL]
114 == HIGHEST_VERSION
115 )
116
117
118def test_check_updates_disable_warnings(

Callers

nothing calls this directly

Calls 3

httpFunction · 0.85
writeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected