python-teos
python-teos copied to clipboard
Add tests for TeosDaemon
After the refactoring of teosd.py in https://github.com/talaia-labs/python-teos/pull/202, all the code that handles the initialization of the tower's components, starting the services and clean teardown is contained in the TeosDaemon class.
This should allow now to have some unit tests for the various parts of the code of the class.
Things to consider:
- a further refactoring of the methods might be needed to improve testability
- we might want to have some form of dependency injection in order to be able to mock the various components during unit tests.