Unleashing Airflow Performance with Dynamic Task Mapping
Unlocking parallel execution in Airflow with Dynamic Task Mapping
A Bit everyday A Byte every week
Unlocking parallel execution in Airflow with Dynamic Task Mapping
Use operator to easily trigger downstream DAGs in Airflow
End the mess of switching Python versions.
An introduction to two approaches for testing class instantiation when using the Factory Pattern, with practical examples using pytest-mock.
Free your unit tests from database dependencies using mocks.
How to use Mock to simulate behavior, raise exceptions, and test side effects.
After covering the basic tools, this article demonstrates how to use mocks effectively in Pytest.
Mocks allow us to replace the logic of real functions to simulate different scenarios and write more precise unit tests.
We’ll walk through examples of mocking functions, simulating errors, and even handling external dependencies like Redis.
An introduction to Pytest and the core concepts of Mock