improve unit tests

review usage of unittest.mock and adding some protection against potential misuage of mock and false positive in preparation of future unit test refactoring for fastapi migration

Merge request reports

Loading