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_client
fixture.run_unittest_testcase
- creates a TestSuite from a unittest TestCase and callsrun_unittest_suite
run_unittest
- convenience method which callsrun_unittest_suite
orrun_unittest_testcase
based on the type of the argument.
dbr_client
dbr_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