Your SQLAlchemy test factory fails at random past 50 rows. Here's the one-line fix.
You write a test that seeds a hundred rows with a factory. It fails with IntegrityError: UNIQUE constraint failed: users.id . You run it again and i…
Latest Testing & QA news from Tech News
You write a test that seeds a hundred rows with a factory. It fails with IntegrityError: UNIQUE constraint failed: users.id . You run it again and i…
🍞 Introduction Hello from Japan! 🇯🇵 This article was originally published in Japanese on Qiita and has been translated and adapted for DEV Community…
Бывают ошибки, которые не видит ни ревью, ни тесты: код отрабатывает правильно, прогон зелёный, а запросов к базе он делает в сто раз больше прежнег…
В первой части я ускорил большой интеграционный pytest-сьют с получаса до полутора минут за счёт инфраструктурных правок. Во второй проверяю следующ…
Есть устойчивое поверье: интеграционные тесты медленные, потому что ходят в настоящую базу. «Подними SQLite в памяти», «замокай репозитории», «не го…
Testing FastAPI + SQLAlchemy with Real PostgreSQL Fixtures: No More Mocking Misery I spent three months debugging why a query worked in tests but fa…
Самая дорогая ошибка моего B2B SaaS имела ровно одну строчку Самая дорогая ошибка моего B2B SaaS имела ровно одну строчку: TENANT_ID = “tenant-1” в…