Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Python: tmp_path And File Tests

Front

Why does OrderOps care about tmp_path and file tests?

Because the toolkit is now important enough that silent regressions in pricing, imports, and partner calls are no…

View Card →
Flashcard Study

Python: tmp_path And File Tests

Front

What is the best default for tmp_path and file tests?

Choose the simplest shape that keeps the rule explicit, testable, and easy for the next engineer to read.…

View Card →
Flashcard Study

Python: tmp_path And File Tests

Front

How should you explain tmp_path and file tests in an interview?

Use temporary directories and controlled files so the test owns its environment and leaves no hidden residue. Candidates…

View Card →
Flashcard Study

Python: tmp_path And File Tests

Front

What is the main pitfall around tmp_path and file tests?

Tests that depend on one developer's local files are brittle and misleading. Naming the pitfall early helps you…

View Card →
Flashcard Study

Python: tmp_path And File Tests

Front

What is the core rule behind tmp_path and file tests?

Use temporary directories and controlled files so the test owns its environment and leaves no hidden residue. This…

View Card →
Flashcard Study

Python: Reliability Stories

Front

What does good reliability stories code look like?

It is explicit about the rule, honest about the data shape, easy to test, and easy to explain…

View Card →
Flashcard Study

Python: Reliability Stories

Front

What is the next improvement after the first working version of reliability stories?

Clarify one boundary, add one focused test, and remove one avoidable ambiguity. Small improvements that directly reduce risk…

View Card →
Flashcard Study

Python: Reliability Stories

Front

What anti-pattern should you watch for with reliability stories?

Using the feature to compress code while making the rule harder to test, debug, or explain. Compression is…

View Card →
Flashcard Study

Python: Reliability Stories

Front

What does a good verbal answer about reliability stories sound like?

Clear, concrete, tradeoff-aware, and tied to one real workflow or bug pattern. Interview answers improve when they sound…

View Card →
Flashcard Study

Python: Reliability Stories

Front

What senior-level judgment belongs with reliability stories?

State when you would choose this approach, when you would not, and which signal would trigger a different…

View Card →