mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#pytest

0 Beiträge0 Beteiligte0 Beiträge heute

NumPy - SciPy - Pandas (2025-07-06, 6-day workshop)

PRE-REQ
You are expected to have programming experience with Python 3, Pytest, Poetry on GNU/Linux.

FOCUS
Features in the new releases
Key programming abstractions
Coding with Python Generics
DataFrame
Functional approach to writing code
Multi-core Performance benchmarking
Packaging considerations

ENVIRONMENT
GNU/Linux system
NumPy
SciPy
Pandas
Python 3.12+
Pytest
Poetry
Git

Event is free to attend but RSVP is required.

Absolutely safe for students and women to attend. Code of conduct applies.

RSVP Cairo (and Maghreb)
meetup.com/softwarehubcairo/

RSVP Ankara (and Turkmen)
meetup.com/softwarehub

RSVP Riyadh (and Mashreq)
meetup.com/softwarehubriyadh/

All members of the Ummah are cordially invited.

#NumPy
#SciPy
#Pandas
#Python
#Poetry
#Pytest
#DataScience
#DataEngineering
#SoftwareFreedom
#SoftwareFreedomProject
#GNU
#Linux
#Community
#Ummah

une bibliothèque pour mocker les ressources #AWS utilisées dans le code de production #Python que vous testez (S3, par exemple) : github.com/getmoto/moto

La page github.com/getmoto/moto/blob/m documente comment écrire les tests (#pytest, #unittest) et donne quelques conseils pour écrire du code de production plus facile à tester (en ce qui concerne les interactions avec boto3, le client vers les services AWS).

A library that allows you to easily mock out tests based on AWS infrastructure. - getmoto/moto
GitHubGitHub - getmoto/moto: A library that allows you to easily mock out tests based on AWS infrastructure.A library that allows you to easily mock out tests based on AWS infrastructure. - getmoto/moto
Antwortete John-Mark Gurney

@encthenet @rachelplusplus Dunno if you've considered this, or would consider it, but pytest has a plugin, pytest-fakefs (github.com/pytest-dev/pyfakefs), that implements an in-memory filesystem complete with file objects that you can use to test file handling code without having to put things on disk. IMO the plugin ecosystem for handling things like this is one of pytest's biggest advantages over unittest.

Or if you prefer, pytest also has built-in functionality that makes working with temporary files pretty easy.

Provides a fake file system that mocks the Python file system modules. - pytest-dev/pyfakefs
GitHubGitHub - pytest-dev/pyfakefs: Provides a fake file system that mocks the Python file system modules.Provides a fake file system that mocks the Python file system modules. - pytest-dev/pyfakefs

Idle thought apropos of nothing specific:

The very same folks telling me BOTH that I MUST use pytest, and that Django MUST have its JSON API story built-in continues to be ironic.

I'd (probably) at least open with the thought that testing is easily as central to a language as JSON APIs are to a web framework.

I don't see a movement to merge pytest to the stdlib.

A tak poza tym, to wysłałem parę łatek, by ulepszyć funkcję epytest w #Gentoo.

Wymuszają krótkie podsumowania, załączają tworzenie plików junit .xml, żeby ułatwić maszynowe przetwarzanie wyników, i — co najważniejsze — dodają zmienną EPYTEST_PLUGINS, żeby podawać, które wtyczki mają być załadowane. Będziemy dążyć do tego, by całkiem odejść od domyślnego automatycznego ładowania wtyczek.

archives.gentoo.org/gentoo-dev

archives.gentoo.org[gentoo-dev] [PATCH 0/5] python-utils-r1.eclass: epytest improvements

In other news, I've sent a few fun patches to improve epytest in #Gentoo.

This includes forcing short summaries, creating junit .xml for machine processing, and most importantly, EPYTEST_PLUGINS to handle specifying the plugins to load. The goal is to eventually move away from plugin autoloading by default.

archives.gentoo.org/gentoo-dev

archives.gentoo.org[gentoo-dev] [PATCH 0/5] python-utils-r1.eclass: epytest improvements

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 #packaging be like:

"Remember the totally random #PyTest plugin that died in 2018, that we forced you to add to #Gentoo, because we decided to start using it for no good reason? Well, we just stopped. Also, we just found a #NIH plugin that reinvents flaky test handling for the third time, enjoy!"

(Fortunately, it's compatible enough with pytest-rerunfailures, so we can ignore it.)