Bug #20245
Echec test jenkins @test_phantom_invalid_json@
Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
23 novembre 2017
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Description
Arrive souvent sur jenkins
=================================== FAILURES =================================== __________________________ test_phantom_invalid_json ___________________________ mocked_popen = <MagicMock name='Popen' id='139971828796944'> caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7f4dbb21fa50> user_john = <User: john> @mock.patch('mandayejs.mandaye.utils.subprocess.Popen') @mock.patch('mandayejs.applications.Test.SITE_LOCATORS', MOCKED_SITE_LOCATORS) def test_phantom_invalid_json(mocked_popen, caplog, user_john): expected_output = ('This is not a valid JSON', None) mocked_popen.return_value = MockedPopen(expected_output=expected_output) UserCredentials.objects.create(user=user_john, locators={ 'login': 'johnny', 'password': 'jumper', 'birth_date': '1995-06-11'}) client = Client() client.login(username='john', password='john') response = client.get(reverse('post-login-do')) assert 'window.top.location = "/_mandaye/associate/"' in response.content for message in response.context['messages']: assert message.level_tag == 'error' > assert message.message == 'invalid response from server' E AssertionError: assert 'server took ...ng to respond' == 'invalid response from server' E - server took too long to respond E + invalid response from server
A creuser