-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generated new imcsdk and updated mo, meta and respected files #248
Changes from 1 commit
9fd9e59
f5fe90c
c9406ca
4383384
5677501
d445dae
8a51d5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,11 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from mock import patch, MagicMock | ||
try: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if unittest.mock provides the same functionality, then let us use that and remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's already removed vikrant, now i don changes only for "test_imcversion.py" |
||
from unittest.mock import patch, MagicMock | ||
except ImportError: | ||
from mock import patch, MagicMock | ||
|
||
from nose.tools import assert_raises | ||
from imcsdk.imchandle import ImcHandle | ||
from imcsdk.mometa.comm.CommIpmiLan import CommIpmiLanConsts | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup_module and teardown_module must not be used in this test.
Everything under tests/unit_tests is expected to work without a connection to an actual server.
If any of your tests need the handle.login(), then you need to move them out of unit_tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure vikrant, i will update the code