зеркало из https://github.com/mozilla/taar.git
Fix for list.clear() not existing in py2.7
This commit is contained in:
Родитель
13cb4f85bb
Коммит
3ff7d7c350
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче