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

Function test_fetch

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

Source from the content-addressed store, hash-verified

57
58
59def test_fetch(static_fetch_data, without_warnings):
60 http('fetch_updates', '--daemon', env=without_warnings)
61
62 with open(without_warnings.config.version_info_file) as stream:
63 version_data = json.load(stream)
64
65 assert version_data['last_warned_date'] is None
66 assert version_data['last_fetched_date'] is not None
67 assert (
68 version_data['last_released_versions'][BUILD_CHANNEL]
69 == HIGHEST_VERSION
70 )
71 assert (
72 version_data['last_released_versions'][BUILD_CHANNEL_2]
73 == LOWEST_VERSION
74 )
75
76
77def test_fetch_dont_override_existing_layout(

Callers

nothing calls this directly

Calls 2

httpFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected