Commit 490d21b3 authored by Paul Rich's avatar Paul Rich
Browse files

Fixing exception propigation so that the mock is closer to what cray_messaging does.

parent 140fe35a
......@@ -16,7 +16,11 @@ from mock import MagicMock, Mock, patch
# need to mock the import of a dependency library for sending messages to BASIL.
# None of these tests actually communicate with BASIL and this library should be a stub
# for these purposes
sys.modules['Cobalt.Components.system.CraySystem.cray_messaging'] = MagicMock()
cray_messaging_mock = MagicMock()
# This error gets passed through the ALPSBridge module as ALPSError, but originates from
# cray_messaging.
cray_messaging_mock.ALPSError = ValueError
sys.modules['cray_messaging'] = cray_messaging_mock
from import raises
from testsuite.TestCobalt.Utilities.assert_functions import assert_match, assert_not_match
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment