You can check, if the unittest module is loaded. It should be loaded only, if a test runs.
>>> 'unittest' in sys.modules.keys()
False
>>> from unittest import TestCase
>>> 'unittest' in sys.modules.keys()
True
You can check, if the unittest module is loaded. It should be loaded only, if a test runs.
>>> 'unittest' in sys.modules.keys()
False
>>> from unittest import TestCase
>>> 'unittest' in sys.modules.keys()
True