VSCode run python tests on conda environment

Viewed 321

I have a conda environment tf which includes tensorflow. I wrote tests using unittest which works correctly from shell on tf environment. However VSCode says that no tests were discovered. When I remove the import tensorflow line VSCode properly discovers tests.

How can I make VSCode to handle tests with dependencies on tf environment?

0 Answers
Related