HomeSoftware Heritage

test_storage: introduce a db_transaction context manager

Description

test_storage: introduce a db_transaction context manager

This wraps the steps needed to get a (properly wrapped) db object and run a
transaction on it so we avoid repeating ourselves

Details

Provenance
olasdAuthored on Oct 2 2019, 5:19 PM
vlorentzPushed on Oct 30 2019, 5:21 PM
Differential Revision
D2067: test_storage: introduce a db_transaction context manager
Parents
rDSTOC9bbd5e2344d8: Postgres storage: introduce a db() context manager
Branches
Unknown
Tags
Unknown