| 57 | |
| 58 | |
| 59 | def 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 | |
| 77 | def test_fetch_dont_override_existing_layout( |