Skip to content

Modify script to create collection databases for testing.

Created by: james-monkeyshines

Description

Modify script to create collection databases for testing. The code already iterates over multiple species in a single json config file, so just need to note when the first one is done, then avoid doing db creation and 'global' table population on subsequent iterations.

Use case

The datacheck framework has special code for handling collection databases; need to test that, so need a test collection database.

Benefits

We can test code behaviour for collection databases.

Possible Drawbacks

None that I can think of.

Testing

Unit tests are not relevant because this is a script, but I have successfully created test databases from single-species and collection core databases with the modified script.

Merge request reports