pytest-pacman - generating test data for libalpm with Python (arch-conf-2020)

18:06
 
Teilen
 

Manage episode 276122294 series 1910928
Von CCC media team entdeckt von Player FM und unserer Community - Das Urheberrecht hat der Herausgeber, nicht Player FM, und die Audiodaten werden direkt von ihren Servern gestreamt. Tippe auf Abonnieren um Updates in Player FM zu verfolgen oder füge die URL in andere Podcast Apps ein.
To test pyalpm (The official Python libalpm bindings) a local pacman database and sync database is required. Instead of relying on pacman and fetching data over the internet, some Python was written to generated the test data on demand. This talk introduces the local database and sync db structure of pacman, how to write a simple pytest plugin and how consumers of pyalpm could use this plugin. The project is located here: https://gitlab.archlinux.org/jelle/pytest-pacman about this event: https://pretalx.com/arch-conf-online-2020/talk/98NC78/

10224 Episoden