Fix janky test
The test was written by someone who thought that defining an unknown field would always raise an error in the validator (it no longer does...it raises a warning). Changed to do something that causes a *real* error.
This commit is contained in:
Родитель
a6620f2041
Коммит
8b3e08d499
|
@ -225,7 +225,7 @@ class TestUpdateManifest(amo.tests.TestCase):
|
|||
open_manifest.return_value = original
|
||||
# Mock new manifest with name change.
|
||||
n = new.copy()
|
||||
n['locale'] = 'en-US'
|
||||
n['locales'] = 'en-US'
|
||||
response_mock = mock.Mock()
|
||||
response_mock.read.return_value = json.dumps(n)
|
||||
response_mock.headers = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче