Tag

assertion

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Apr 5, 2025 · Backend Development

Encapsulating Assertion Logic in Pytest for API Automation Testing

This article explains how to encapsulate common assertion logic—such as status‑code, JSON data, and database assertions—within the Pytest framework, providing reusable functions and a generic assertion class to improve readability, maintainability, and efficiency of backend API tests.

API testingPythonassertion
0 likes · 5 min read
Encapsulating Assertion Logic in Pytest for API Automation Testing
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 24, 2025 · Databases

Analysis of MySQL Bug #115352: InnoDB Assertion Failure When Killing a Partition‑Table ALTER

This article walks through the investigation of MySQL bug #115352, describing how an assertion failure in InnoDB’s dictionary cache caused a server crash during a killed ALTER TABLE on a partitioned table, the debugging steps taken, and the eventual fix applied in MySQL 8.0.40.

CorefileData DictionaryInnoDB
0 likes · 9 min read
Analysis of MySQL Bug #115352: InnoDB Assertion Failure When Killing a Partition‑Table ALTER
360 Quality & Efficiency
360 Quality & Efficiency
Sep 10, 2022 · Fundamentals

Exploring Assertion Strategies in unittest and pytest for Large-Scale Data Validation

The article examines the limitations of unittest's assertEqual for validating hundreds of CSV metrics, proposes method-splitting, custom checkpoint classes, and pytest‑assume techniques to allow multiple assertions to run and report failures without halting the entire test suite.

Pythonassertionautomation
0 likes · 5 min read
Exploring Assertion Strategies in unittest and pytest for Large-Scale Data Validation