(static_fetch_data, without_warnings)
| 101 | |
| 102 | |
| 103 | def 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 | |
| 118 | def test_check_updates_disable_warnings( |