Interview practice question
Adding tests to legacy pipeline code
Data Engineering · DataOps CI/CD · Beginner
You inherit a large Python ETL script with no tests. How do you safely start testing it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Start with characterization tests on current outputs.
- Refactor small parts into pure functions.
- Write unit tests for each function.
- Run tests in CI.
- Improve gradually; don't rewrite everything at once.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.