Fix for list.clear() not existing in py2.7

This commit is contained in:
Victor Ng 2018-03-07 13:54:12 -05:00
Родитель 13cb4f85bb
Коммит 3ff7d7c350
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -58,5 +58,5 @@ def test_dont_crash_without_active_addons():
mock_profile_controller = MockProfileController(mock_data) mock_profile_controller = MockProfileController(mock_data)
fetcher = ProfileFetcher(mock_profile_controller) fetcher = ProfileFetcher(mock_profile_controller)
expected = MOCK_DATA['expected_result'] expected = MOCK_DATA['expected_result']
expected['installed_addons'].clear() expected['installed_addons'][:] = []
assert fetcher.get("random-client-id") == expected assert fetcher.get("random-client-id") == expected