settings.json에 테스트 디렉토리의 상위 디렉토리를 명시해야 함
테스트 디렉토리가 tests라면 pytestArgs에 그것보다 상위 디렉토리를 작성해주면 됨
{
"python.testing.pytestArgs": [
"flask",
"flask/app",
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"pythonTestExplorer.testFramework": "pytest",
"python.testing.autoTestDiscoverOnSaveEnabled": true,
}