artefactual / automation-tools

Tools to aid automation of Archivematica and AtoM.
GNU Affero General Public License v3.0
46 stars 33 forks source link

Fix transfer_async.py and add ability to specify processing config by name #130

Closed tw4l closed 2 years ago

tw4l commented 2 years ago

This pull request adds a processingconfig setting in the transfers.conf file that allows users to specify which processing configuration to use for transfers created with the transfer_async.py script.

transfer_async.py wasn't working following a refactor of transfer.py, so I've also fixed a few things (a character encoding issue, out-of-date function signature, and switched to using the existing helpers in the models module for database interactions) to enable this feature to work.

I also added an integration test for transfer_async.py to help prevent future breaking changes.