A minimalist example on how to get started with PySpark and Pytest To get started and hack away, clone the repository, then pip install -e .[test] py.test This should be everything you need to get started.