Using S3KeySensor So Airflow Doesn't Wait a Lifetime for a File
As long as the file shows up, I'll do anything
A Bit everyday A Byte every week
As long as the file shows up, I'll do anything
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.