This is my class,just few lines but I will try to explain from dzana_commons_utils.config.config import dzanaConfigSession .... class BaseSession(): def __init__(self): self.dzana_config_session = dzanaConfigSession() I want to test initialization here self.dzana_config_session = dzanaConfigSession The problem is the multiple inheritence from dzana_commons_utils.config.config import dzanaConfigSession The config itself is very large with parent and child classes. How to setup the pytest for this kind of project? Continue reading...