Byte Ebi's Logo

Byte Ebi 🍤

A Bit everyday A Byte every week

Understanding Amazon RDS Connection Limits

Calculate the maximum number of connections for Amazon RDS across different instance types

Ray

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.

Manage Python Versions with Pyenv

End the mess of switching Python versions.

Ray

Pyenv is a tool for managing different Python versions.
Whether you’re upgrading a project to a newer Python release or switching between projects with different requirements, pyenv makes the process simple and hassle-free.

[Pytest 101] 04 Mock Class

An introduction to two approaches for testing class instantiation when using the Factory Pattern, with practical examples using pytest-mock.

Ray

Introducing the factory pattern in your code can significantly improve its structure—but it also makes unit testing a bit trickier.
We’ll walk through two different mocking strategies, compare their pros and cons, and help you write more robust tests!

[Pytest 101] 03 Mock SQL Query

Free your unit tests from database dependencies using mocks.

Ray

With mock objects, we can simulate database operations without actually connecting to a real database.
This means we don’t need to prepare a dedicated test database or worry about cleaning it up after tests.

[Pytest 101] 02 Basic Usage of Mock

How to use Mock to simulate behavior, raise exceptions, and test side effects.

Ray

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.

[Pytest 101] 01 Introduction to Pytest & Mock

An introduction to Pytest and the core concepts of Mock

Ray

Writing unit tests is a well-known best practice in software development, but actually getting started often feels overwhelming.
Where do you begin? What tools should you use? And how do you use them?
For beginners, these first steps can easily become roadblocks.

The Gatekeeper Before Your Git Commits: Pre-commit

A handy tool to auto-check code quality and make every Git commit more reliable.

Ray

Make your Git commits safer! No complex setup required. Just install and commit with confidence.
Use pre-commit to automatically run format checks and tests before committing.
Easy to install and configure. Instantly improve your code quality.

Recent Posts

Categories

Tags