diff --git a/plugins/ufm_log_analyzer_plugin/README.md b/plugins/ufm_log_analyzer_plugin/README.md index 7fedaa98..114a52b5 100644 --- a/plugins/ufm_log_analyzer_plugin/README.md +++ b/plugins/ufm_log_analyzer_plugin/README.md @@ -79,8 +79,8 @@ This logic will show links that: There is a folder named `unit_tests`, this folder contains some unit tests, to run the tests follow these steps: -1. Make sure you have `pytest` installed. If not, you can install it using `pip`: - +1. Inside the project virtual environment, make sure you have `pytest` installed. + If not, you can install it using `pip`: ```bash pip install pytest 2. Navigate to the root directory of the log analyzer project: diff --git a/plugins/ufm_log_analyzer_plugin/unit_tests/test_ibdiagnet_log_analyzer.py b/plugins/ufm_log_analyzer_plugin/unit_tests/test_ibdiagnet_log_analyzer.py index 42294404..ac4f3ee4 100644 --- a/plugins/ufm_log_analyzer_plugin/unit_tests/test_ibdiagnet_log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/unit_tests/test_ibdiagnet_log_analyzer.py @@ -29,10 +29,8 @@ def fabric_size_data(): @pytest.fixture def analyzer(fabric_size_data): - # Return an instance of the test-specific subclass return TestIBDIAGNETLogAnalyzer(fabric_size_data) def test_get_fabric_size(analyzer, fabric_size_data): - # Call the method and check the result result = analyzer.get_fabric_size() assert result == fabric_size_data, "get_fabric_size should return _log_data_sorted"