I am using VScode with python code and I have a folder with sub-directories (2-levels deep) containing python tests. 
When I try "Python: Discover Tests" it asks for a test framework (selected pytest) and the directory in which tests exist. At this option, it shows only the top-level directories and does not allow to select a sub-directory. 
I tried to type the directory path but it does not accept it. 
Can someone please help on how to achieve this?
There are two options. One is to leave the selection as-is and make sure your directories are packages by adding __init__.py files as appropriate. The other is you can go into your workspace settings and adjust the "python.testing.pytestArgs" setting as appropriate to point to your tests.
How do I select a sub-folder as a directory containing tests in Python extension for Visual studio code