What am I doing instead of resting? Well, I'm playing with generating EPYTEST_DESELECT from `epytest --junit-xml=…`

https://github.com/gentoo/gentoo/pull/42606
https://github.com/projg2/gpyutils/blob/master/gpyutils/scripts/junit2deselect.py

#Gentoo #PyTest #Python

python-utils-r1.eclass: epytest improvements by mgorny · Pull Request #42606 · gentoo/gentoo

Collecting next batch. CC @gentoo/python

GitHub

No więc co dziś robię zamiast odpocząć? Otóż, bawię się w generowanie EPYTEST_DESELECT z `epytest --junit-xml=…`

https://github.com/gentoo/gentoo/pull/42606
https://github.com/projg2/gpyutils/blob/master/gpyutils/scripts/junit2deselect.py

#Gentoo #PyTest #Python

python-utils-r1.eclass: epytest improvements by mgorny · Pull Request #42606 · gentoo/gentoo

Collecting next batch. CC @gentoo/python

GitHub

It's been a while since I've posted an update for Rack Root, but I've actually made some progress on it lately.

I've finished my refactor to use SQLAlchemy for the database connections and also (finally) figured out how I want to join tables together and relate things.

I also changed some API endpoints. For example, if you look for /network/$id/gateway and there's no gateway, you get a 404. I also changed the UX around gateways. When you make a new network, there's no gateway assigned, so that part of the page has a green + icon. When you set a gateway, that icon is now a red delete icon. Those update the field and icon dynamically without having to refresh the whole page.

The new networks page also will look at the result and see if you got an HTTP 201. If so, you get redirected to the new page. Else, you get an error message. I'm not sure if I want to add more detail to that, it would require the frontend to parse and guess what went wrong. Maybe that's an assignment for another day.

Finally, there's a new Delete network button on the network detail page.

#rackroot #homelab #vuetify #fastapi #sqlalchemy #frontend #backend #fullstack #pytest

🐍 This #pytest 101 talk explains what automated tests are and how to get started with pytest for your #Python projects. https://www.youtube.com/watch?v=etosV2IWBF0
Python Testing 101 with pytest

Speaker: Matt LaymanAt the March 2019 Python Frederick event, Matt focused on the fundamentals of Python testing while using the pytest package.My Gear* Audi...

YouTube

Every time pytest releases a new version I get 164432678906432 reminders about how many (side) projects with Dependabot turned on I still have.

#pytest #python #github #dependabot

Тесты как код: храним ручные тест-кейсы в Git и дружим с ТестОпс

В Открытой Мобильной Платформе, мы используем инструмент ТестОпс , который позволяет решать много разных задач - хранение тестов, запуск автоматизированных и ручных сценариев, анализ результатов, составление отчетов по тестированию и многое другое. Если вы считаете, что ручные тест-кейсы нужны исключительно для таблиц и интерфейсов, у нас есть новости: их можно хранить в Git как код. И не просто хранить, а интегрировать с ТестОпс. Почему это удобно? Потому что это делает управление тестами более эффективным, а данные — безопасными и надёжными.

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

#TestOps #ручное_тестирование #тесты_как_код #git #pytest #allure #allure_framework #тестдизайн #devops

Тесты как код: храним ручные тест-кейсы в Git и дружим с ТестОпс

В Открытой мобильной платформе, мы используем инструмент ТестОпс , который позволяет решать много разных задач — хранение тестов, запуск автоматизированных и ручных сценариев, анализ результатов,...

Хабр
Dites, la team #django #python #pytest : il me semble avoir vu passer la réf d'un package permettant de mocker les API tierces pour éviter de faire des appels réseau dans nos tests. Ça vous dit quelque chose ?
Did some noodling with Prism to generate a stub / mock server from an OpenAPI spec along with pytest integration tests, pretty neat! https://github.com/matthew-shaw/prism-openapi #python #pytest #openapi #testing
GitHub - matthew-shaw/prism-openapi: Prism OpenAPI

Prism OpenAPI. Contribute to matthew-shaw/prism-openapi development by creating an account on GitHub.

GitHub
Last chance to grab “Python Testing with pytest” at 40% off with code SPRING2025.
Expires June 3, 2025.
https://pragprog.com/titles/bopytest2/python-testing-with-pytest-second-edition/
#python #pytest
Python Testing with pytest, Second Edition

Create efficient, elegant software tests in pytest, Python's most powerful testing framework.

Paczki Pythona:

"A pamiętacie tę całkowicie przypadkową wtyczkę PyTesta, która nie jest rozwijana od 2018 roku, i którą musieliście dodać do #Gentoo, bo postanowiliśmy jej używać bez jakiegokolwiek powodu? No cóż, właśnie przestaliśmy. A tak przy okazji — właśnie udało nam się znaleźć kolejną wtyczkę, która po raz trzeci wynajduje na nowo obsługę niestabilnych testów. Miłej zabawy!"

(Szczęśliwie, jest dostatecznie kompatybilna z pytest-rerunfailures, żebym mógł ją zignorować.)

#Python #PyTest