-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pytest discovery in VS code #1457
Comments
Do you have spark = DatabricksSession.builder.profile("<profile-name>").getOrCreate() |
I do have a
In the earlier provided error it does seem like Databricks can find this profile (showing MY_HOST and MY_CLUSTER_ID in the provided error). I also tried it with explicitly setting the profile to DEFAULT:
without success unfortunately. I have the same error - terminal pytest works, while vscode plugin doesn't - when running the |
Hey, sorry, this issue got lost If you are still experiencing the same problems, please checkout comments to this issue #1540 I've provided some guidance on how to run tests in the vscode there. Closing this issue for now, please re-open if there are still any problems |
I am using VS code with databricks-connect v2.4.8, and I wrote some pytests. In
conftest.py
I created a fixture:Running the pytest command from within the terminal in the venv works just fine. However, when using the VS code test plugin to discover the tests I get this error:
Anyone any idea on how to solve this?
The text was updated successfully, but these errors were encountered: