Please package mock line in unittest files which imports peripheral package.
The following import and mock is required for vscode to discover the unittest in Windows environment
import sys
from unittest import mock
sys.modules["periphery"] = mock.MagicMock()