hotosm / tm-admin

Administrative modules for Tasking Manager style projects
GNU Affero General Public License v3.0
1 stars 1 forks source link

Create testdata file for CI #17

Open robsavoye opened 8 months ago

robsavoye commented 8 months ago

For CI to work in github, this project needs a canned data extract from a working tm-admin database. Just to be paranoid, this data shouldn't contain any private data like user's email addresses, etc.. Nothing is required to be valid in the "real world", as long as the test cases match.

robsavoye commented 7 months ago

To really create test data, the program that imports from Tasking Manager needs to fully work. Once all the tables in the new schema are populated, then data can be extracted to make test data. Some filtering will be required.

robsavoye commented 6 months ago

Now that I can import data from the existing TM database into the new schema, I got started on this. Rather than a big SQL dump, since we need to test inserting records anyway, the test data is created in each test case. It's easier to maintain this way being in the code being tested.