-
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
Conversation
"make test" |
from ..connection.info import custom_setup, custom_teardown | ||
|
||
|
||
def setup_module(): |
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
tests/unit_tests/test_ipmi.py
Outdated
@@ -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 comment
The 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 from mock import patch, MagicMock
all together. No need to do try and except.
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.
it's already removed vikrant, now i don changes only for "test_imcversion.py"
No description provided.