Maybe you need to install PySpark in your environment where you are running pytest :
pip install pyspark
To connect to Azure Databricks, you generally need to use the Databricks Connect package.
pip install databricks-connect
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Expert,
have created test case in pytest and wanted to connect to sparksession
how we can add our spark session into it
ModuleNotFoundError: No module named 'pyspark'
getting this error
Maybe you need to install PySpark in your environment where you are running pytest :
pip install pyspark
To connect to Azure Databricks, you generally need to use the Databricks Connect package.
pip install databricks-connect