Testing a Python Backend: Unit, Integration, and Service Tests
How do you test a backend that accepts both HTTP requests and AMQP messages? I tested the same application through both interfaces, using a real tes…
Последние новости Open Source от Tech News
How do you test a backend that accepts both HTTP requests and AMQP messages? I tested the same application through both interfaces, using a real tes…
В четверг был звонок на 57 минут, восемь человек. Голоса собеседников Nemotron разметил за 7 секунд. Мой микрофон тогда ещё размечал sherpa. Потом я…
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…
Usually, infrastructure stories start with the words: "Our project got too big, and we decided to split it into parts." But with us, everything was…
Зелёные тесты не всегда означают, что код защищён от ошибок. Моки могут скрывать проблемы: принимать неверные вызовы, не замечат…
Extracting a command wrapper without a result snapshot breaks callers. Characterization tests must freeze returncode, streams, and timeout first. Th…
Both replace an attribute. Both undo it afterwards. Most codebases end up with both, chosen by whichever the author saw last. There is a cleaner lin…
Leaving Everything to AI Feels Risky. But Codex Became Much More Reliable Once I Put Up Some Guardrails https://github.com/tosane932/sales_data_app…
As I've been onboarding to my new position, I've been reviewing some of my coworker's code. I learned that pytest 1) has some built-in fixtures, and…
Introduction Hello from Japan! 🇯🇵 I am tosane932 , a professional truck driver working in logistics while teaching myself Python. In my previous art…
Python Testing: Write Tests That Actually Catch Bugs You’ve written a test that passes, but your bug still slipped through. Why? Because you tested…
Introduction This is my tenth article as a Java engineer learning TypeScript and Python from scratch. This is the third project in my Python series.…
Introduction This is my ninth article as a Java engineer learning TypeScript and Python from scratch. Last time I moved into the Python series, and…
Сразу честно, чтобы вы понимали, с кем имеете дело: я из тех душнил, которые закатывают глаза, когда в сотый раз слышат «а давайте это все сделает н…
Не всегда стоит патчить ответ от внешнего HTTP-сервиса через mocker.patch . В таких тестах приложение возвращает ожидаемый ответ, но важная ча…
Настройка CI/CD часто кажется новичкам чем-то сложным и доступным только DevOps-инженерам. На самом деле автоматизировать рутину Python-проекта можн…
Python уже не просто язык для скриптов и Data Science — в 2026 году он стал «клеем», который связывает микросервисы, тесты и CI/…