Interview practice question
Adding tests to an untested transform
Data Engineering · Python · Beginner
You need to change a transformation function that has no tests. How do you make the change safely?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- First write tests for the current behavior using sample inputs.
- Include edge cases like nulls, empty input and duplicates.
- Then make the change and update tests for new behavior.
- Run tests in CI.
- Compare output on real data before and after.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.