Skip to content

Instantly share code, notes, and snippets.

@fitzy1321
Last active December 7, 2022 21:26
Show Gist options
  • Save fitzy1321/30c71ea49403da07e91c8198923f927c to your computer and use it in GitHub Desktop.
Save fitzy1321/30c71ea49403da07e91c8198923f927c to your computer and use it in GitHub Desktop.
VSCode and pytest troubleshooting

VSCode and pytest

If your encountering problems running pytest in vscode testing panel, create an .env file with the following:

# .env
PYTHONPATH="./<package_name>;${PYTHONPATH}"

Make sure to add .env to your .gitignore file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment