Triggering Airflow DAG from Another
Use operator to easily trigger downstream DAGs in Airflow
A Bit everyday A Byte every week
Use operator to easily trigger downstream DAGs in Airflow
Calculate the maximum number of connections for Amazon RDS across different instance types
Have you ever run into database connection limits, or felt unsure about which RDS instance type to choose when planning your system architecture?
This article walks you through how Amazon RDS calculates its maximum connections and provides a comparison across different instance types to help you make better decisions.
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