You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mocking utils.translate_file() method in our test code (in this case) and it is producing the following stack trace (which leads to test failure):
Traceback (most recent call last):
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 1298, in patched
return func(_args, *_keywargs)
File "./ServerTypeHandler_test", line 285, in test_translate_file_failure
ph._create_host_override_file()
File "/shared/workspace/mwick/deploy/deploy/lib/servertype_handler.py", line 108, in _create_host_override_file
yaml_data = utils.translate_file(t_name, self.env)
File "", line 3, in translate_file
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 1055, in call
return _mock_self._mock_call(_args, *_kwargs)
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 1114, in _mock_call
result = next(effect)
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 126, in next
return obj.next()
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 493, in next
return next(self.obj)
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 127, in next
return _next(obj)
StopIteration
This works when using mock 1.0.1 for v2.7 python. We are using virtual env to install all our python libraries for testing, etc.
The text was updated successfully, but these errors were encountered:
mocking utils.translate_file() method in our test code (in this case) and it is producing the following stack trace (which leads to test failure):
Traceback (most recent call last):
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 1298, in patched
return func(_args, *_keywargs)
File "./ServerTypeHandler_test", line 285, in test_translate_file_failure
ph._create_host_override_file()
File "/shared/workspace/mwick/deploy/deploy/lib/servertype_handler.py", line 108, in _create_host_override_file
yaml_data = utils.translate_file(t_name, self.env)
File "", line 3, in translate_file
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 1055, in call
return _mock_self._mock_call(_args, *_kwargs)
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 1114, in _mock_call
result = next(effect)
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 126, in next
return obj.next()
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 493, in next
return next(self.obj)
File "/shared/workspace/mwick/deploy/deploy/.venv/venv/lib/python2.7/site-packages/mock/mock.py", line 127, in next
return _next(obj)
StopIteration
This works when using mock 1.0.1 for v2.7 python. We are using virtual env to install all our python libraries for testing, etc.
The text was updated successfully, but these errors were encountered: