Skip to content

Conversation

@8ohamed
Copy link
Collaborator

@8ohamed 8ohamed commented Feb 9, 2025

I have extracted the MQTT client code from cpsns.py, and I have created a test for it.
I also created metadata documentation.

Copy link
Contributor

@prasadtalasila prasadtalasila left a 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():
Copy link
Contributor

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
Copy link
Contributor

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.

@8ohamed
Copy link
Collaborator Author

8ohamed commented Feb 20, 2025

Hi @prasadtalasila I have now pushed the changes to the hbk branch

@prasadtalasila prasadtalasila merged commit 0993601 into main Feb 22, 2025
@prasadtalasila prasadtalasila deleted the hbk branch March 1, 2025 21:23
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.

3 participants