QuestionQ52

VerifiedDebugging and Deploying

A Data Engineer wants to use common Python testing frameworks to run unit tests on Python functions defined across several Databricks notebooks that are currently used in production.

How can the data engineer run unit tests for functions that work with production data?

Explanation

Unit tests for functions that work with production data should run against non-production data that closely mirrors production. This avoids unexpected changes to production data while retaining realistic data characteristics for the tests.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!