Pytest plugin for testing Databricks notebooks
To help you getting started, I have created a Getting Started page.
run_unittest_suite- execute unittest TestSuite , capture XML report and testing report and return a dictionary with results, suitable fordbr_clientfixture.run_unittest_testcase- creates a TestSuite from a unittest TestCase and callsrun_unittest_suiterun_unittest- convenience method which callsrun_unittest_suiteorrun_unittest_testcasebased on the type of the argument.
dbr_clientdbr_connection
Following command line options are added to pytest:
--env-databricks-token--env-databricks-url--env-databricks-cluster-id--databricks-token--databricks-url--databricks-cluster-id
Same options are added also to pytest.ini
- added Getting Started page
- fixed typo
- dbr_connection fixture raises exception of token, url or cluster id not specified
- added run_unittest and run_unittest_testcase helpers
- new test client auto_save and dir_auto_save properties