What's a good tool in the #Python #PyTest universe to do benchmarks and prevent performance regression as part of your test suite?

My #pytest quick reference brochures finally arrived at #PyConDE 🥰

Find them at this desk at the entrance, or at the community sponsors desk in the Lounge (first floor). Please take as many as you (and/or your colleagues) need, I have 500 here weighing in at >30kg, and I am here by train 😅

#Python

agent-output: drastically reduce token consumption for #unittest and #pytest runs ( #Python ) 👇
@the_compiler Well, that didn‘t quite go according to plan :) But thank you anyway. I never knew there was so much to say about #pytest. Will definitely read it!

I wanted to design a #pytest cheat sheet for a while, finally started last week to have it ready for #PyConDE.

I wanted to have a 6 page leaflet (A4 split into thirds), then hyperfocus kicked, and I ended up with a 40 page booklet instead! 🤯

I ordered 500 copies to my hotel, if all goes well they will arrive on Wed. Make sure to get yours, or I'll have to figure out a way to get 30kg home safely again 😅.

Released under CC BY-ND: https://github.com/The-Compiler/pytest-quick-ref

PDF: https://pyte.st/ref.pdf

#Python

GitHub - The-Compiler/pytest-quick-ref: PDF/paper cheat sheet for pytest

PDF/paper cheat sheet for pytest. Contribute to The-Compiler/pytest-quick-ref development by creating an account on GitHub.

GitHub

Как мы создали новый тестовый фреймворк, адаптируемый к росту проектов

Наш тестовый фреймворк перестал масштабироваться с ростом сервисов. Мы переработали архитектуру, ввели разделение на слои, упростили масштабирование автотестов и подготовили фреймворк к интеграции SDK и использованию AI

https://habr.com/ru/articles/1020856/

#тестирование #python #pytest #test_automation

Как мы создали новый тестовый фреймворк, адаптируемый к росту проектов

Добрый день! Меня зовут Анатолий Бобунов, и в EXANTE я SDET - Software Development Engineer in Test. В последние несколько лет я развивал тестовую архитектуру для бэкенд-сервисов компании. Наш...

Хабр

In my #python project #xiaolongdictionary I had need for generating example data. I did not want to add more dependencies for that, so I took some time to create a function, that takes a TypedDict type and a dictionary of "constraints" to constrain the produced values and output a "factory", that can be called and outputs example values.

https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/src/commit/9437f974e8f59a77e0052d26ee6cc10641052313/test/factories.py

It does not cover all the cases that one could imagine, but seems to cover all of mine.

#test #pytest #factory #programming #coding

xiaolong-dictionary/test/factories.py at 9437f974e8f59a77e0052d26ee6cc10641052313

xiaolong-dictionary - Xiaolong Dictionary — A GUI application to help you learn vocabulary of (probably) any language. It is written in Python using tkinter, and runs on GNU/Linux, Windows, and probably also MacOS.

Codeberg.org

Фабрики в тестировании (Python, Django, pytest, factory_boy)

Здесь мы рассматриваем фабрики в тестировании. На очень элементарных примерах, с использованием языка python и инструментов Django, pytest, factory_boy.

https://habr.com/ru/articles/1017700/

#python #pytest #django #factory_boy #тестирование

Фабрики в тестировании (Python, Django, pytest, factory_boy)

Зачем нужны фабрики в тестировании “В больших проектах есть необходимость контролировать очень много критичных частей, и не всегда есть время на их контроль вручную” Эта фраза знакома каждому...

Хабр

I kept forgetting how to assert exception messages in PyTest, so I finally checked the docs.

Here’s a reference snippet 🐍

#TIL #DailyPythonista #PyTest #TDD #Python #programming

https://borutzki.github.io/2026/03/30/how-to-assert-exception-message-in-pytest.html

pytest-check 2.8.0
https://github.com/okken/pytest-check/releases/tag/2.8.0
check helper functions, check.equal(), etc., now support an optional xfail string to allow check failures to result in xfail instead of fail on a non-xfail marked test
And we’re temporarily at 0 open issues and 0 PRs
#Python #pytest
Release 2.8.0 · okken/pytest-check

Support Request #122: Feature proposal: Capability to mark checks as xfail Allow check helper functions, including raises(), to accept an xfail reason. A failing check can now produce an xfailed te...

GitHub