-
Notifications
You must be signed in to change notification settings - Fork 1
created the hbk folder #3
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
Conversation
prasadtalasila
left a comment
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.
@8ohamed thanks for the PR. Please address the review comments. Thanks.
| from paho.mqtt.client import Client as MQTTClient # type: ignore | ||
|
|
||
|
|
||
| def load_json_config(): |
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 is better to add type hint for function return type. In this case, it seems to be a json file.
| import sys | ||
| import os | ||
| import unittest | ||
| from unittest.mock import MagicMock |
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.
Please use pytest and pytest-cov.
|
Hi @prasadtalasila I have now pushed the changes to the hbk branch |
I have extracted the MQTT client code from cpsns.py, and I have created a test for it.
I also created metadata documentation.