Testing parallel, non-deterministic code
Hands-on practice on testing multiple processes. Also, a refresher on Calculus :)
Hands-on practice on testing multiple processes. Also, a refresher on Calculus :)
Bored of mundane if-else statements and sanity checks against your data format? The advent of Python 3.10 brought a tool allowing one to solve such problems elegantly, compactly and declaratively - Structural Pattern Matching.
Some parts of your code are hard to test - API calls, randomized or long-running calculations cannot be tested effectively. Luckily, there are a bunch of tools to help us bypass such limitations. This article describes one of them - monkeypatching.