test(python): refactored write_database
unit tests to properly separate concerns
#4591
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention