Skip to content
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

Merged
merged 7 commits into from
Dec 2, 2024

Conversation

PavanMuchhukunta
Copy link
Contributor

No description provided.

@vvb vvb closed this Nov 28, 2024
@vvb vvb reopened this Nov 28, 2024
@PavanMuchhukunta
Copy link
Contributor Author

"make test"

from ..connection.info import custom_setup, custom_teardown


def setup_module():
Copy link
Member

@vvb vvb Nov 29, 2024

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

Copy link
Contributor Author

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

@@ -11,7 +11,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from mock import patch, MagicMock
try:
Copy link
Member

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.

Copy link
Contributor Author

@PavanMuchhukunta PavanMuchhukunta Nov 29, 2024

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"

@vvb vvb merged commit a7cbddf into CiscoUcs:master Dec 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants