$npx skillfedfor your agent

databricks-test

Unit testing and mocking for Databricks

SkipPyPI TestingReleased Mar 202095.7K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — databricks_test-0.0.4-py3-none-any.whl
v0.0.4 · released 2020-03-04

No. The project is archived and abandoned since 2021-01-26 with no maintenance since then. While it has low install friction and permissive licensing, the lack of updates means it is unlikely to work reliably with current Databricks APIs, PySpark versions, or modern Python environments. Only consider it if you are locked into an older Databricks setup that has not changed since 2020.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest setup in your code project outside Databricks; only supports .py notebook format, not .ipynb or .dbc.
  • Installation is straightforward with no runtime dependencies, but the project is archived and abandoned since 2021-01-26 with no updates since then.
  • Use only if your Databricks setup and notebook patterns remain compatible with that era.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use and modify freely, but the lack of active maintenance means no updates to licensing terms or legal review.

last release 2020-03-04 (2354 days) · last repo commit 2021-01-26 · 49 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 95,678 downloads/mo, #13,255 on PyPI

Verify before relying

pip install databricks_test

# In your notebook:
if 'dbutils' not in locals():
    import databricks_test
    databricks_test.inject_variables()

# In your test file:
import databricks_test

def test_notebook():
    with databricks_test.session() as dbrickstest:
        dbrickstest.run_notebook(".", "notebook_name")
        # assertions here
  • Whether the package works with current Databricks notebook APIs and PySpark versions given the last release was 2020-03-04.
  • Compatibility with modern Python versions beyond what the classifier 'Programming Language :: Python :: 3' indicates.
  • Whether mocking of newer Databricks extensions and connectors is supported.
Same gist for agents: .md · .json

What it is and what it does

databricks_test is a unit testing framework designed to let you test Databricks notebooks locally using pytest, without needing to run them on a Databricks cluster. It works by injecting mocked versions of Databricks-specific objects—spark, dbutils, display—into your notebook code when run locally, while those objects remain untouched when the notebook runs in Databricks itself. The framework supports PySpark operations including UDFs and Pandas UDFs, and lets you mock connectors to external systems like Azure Storage, S3, and SQL Data Warehouse.

The typical workflow is to add an instrumentation cell at the top of your notebook that conditionally loads databricks_test only when running locally (detected by checking if dbutils exists), then write test cases that instantiate a databricks_test session, configure mocks for external dependencies, run the notebook, and assert on the results. This allows you to validate ETL logic, data transformations, and notebook behavior in a fast, local test environment before deploying to Databricks.

Use it for

  • Test ETL notebooks that read CSV and write Parquet locally before running on a cluster.
  • Mock widget inputs and dbutils calls to test parameterized notebook logic without Databricks.
  • Validate PySpark transformations and UDFs in isolation using local temporary files.
  • Mock external connectors (Azure Storage, S3, SQL DW) to test data pipeline integration points.
  • Run pytest on notebook code as part of a CI/CD pipeline in a code repository.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The project is archived and abandoned since 2021-01-26 with no maintenance since then. While it has low install friction and permissive licensing, the lack of updates means it is unlikely to work reliably with current Databricks APIs, PySpark versions, or modern Python environments. Only consider it if you are locked into an older Databricks setup that has not changed since 2020.

Install

databricks-test on PyPI

Before you install

Installation is straightforward with no runtime dependencies, but the project is archived and abandoned since 2021-01-26 with no updates since then. Use only if your Databricks setup and notebook patterns remain compatible with that era.

Requires pytest setup in your code project outside Databricks; only supports .py notebook format, not .ipynb or .dbc.

License in practice

Licensed under MIT (permissive), so you can use and modify freely, but the lack of active maintenance means no updates to licensing terms or legal review.

Quickstart

pip install databricks_test

# In your notebook:
if 'dbutils' not in locals():
    import databricks_test
    databricks_test.inject_variables()

# In your test file:
import databricks_test

def test_notebook():
    with databricks_test.session() as dbrickstest:
        dbrickstest.run_notebook(".", "notebook_name")
        # assertions here

Verify before relying

  • Whether the package works with current Databricks notebook APIs and PySpark versions given the last release was 2020-03-04.
  • Compatibility with modern Python versions beyond what the classifier 'Programming Language :: Python :: 3' indicates.
  • Whether mocking of newer Databricks extensions and connectors is supported.

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,354 days since the last release
Last repo commit repository archived
First released
Downloads95,678 / month, #13,255 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: databricks_test-0.0.4-py3-none-any.whl

Tags

Capabilities
databricks notebook unit testingmock databricks locallypytest databricks notebooksdatabricks test frameworklocal databricks testingdatabricks notebook mockingtest databricks etl
Topics
databricksnotebook-testingabandoned

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “databricks notebook unit testing”

  • databricks-testProvides a unit testing framework for Databricks notebooks, allowing…
  • nutterNutter is a testing framework for Databricks notebooks that lets you…
  • testbooktestbook lets you write unit tests for Jupyter Notebooks in separate…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also dbldatagen · nutter · pyspark-test · databricks-connect · chispa · TestSlide · dbt-databricks · brickflows · pyspark-data-sources