SIENTIAPDE-988
Refactor OpcManager initialization and unsubscribe method; enhance logging - Removed the `initialize_from_config` method from `OpcManager` class and adjusted the constructor to handle configuration directly. - Improved the `unsubscribe` method to include detailed logging for non-existent subscriptions. - Updated tests in `test_opc_manager.py` to reflect changes in the `OpcManager` class. - Commented out Docker-related fixtures in `conftest.py` for potential future use. - Enhanced test coverage in `test_single_node.py` and `test_data_manager.py` with additional scenarios and assertions. - Introduced new methods in `Ingestor` and `IngestorManager` classes to manage server subscriptions and leases more effectively. - Added new tests for `Ingestor` class to validate initialization and slot management logic. - Implemented logging improvements across various classes to ensure better traceability of actions and errors.
This commit is contained in:
19
README.md
19
README.md
@@ -37,4 +37,23 @@ pip install -r requirements.txt
|
||||
Run feeder
|
||||
'''
|
||||
python simulator/redis-feeder.py
|
||||
'''
|
||||
|
||||
## Unit tests
|
||||
### Install pytest
|
||||
'''
|
||||
pip install pytest
|
||||
'''
|
||||
### Run pytest
|
||||
'''
|
||||
pytest
|
||||
'''
|
||||
### Get current coverage
|
||||
'''
|
||||
pip install pytest-cov
|
||||
pytest --cov=ingestor
|
||||
'''
|
||||
### Generate complete report
|
||||
'''
|
||||
pytest --cov=ingestor --cov-report=html
|
||||
'''
|
||||
Reference in New Issue
Block a user