dwyl / mvp

📲 simplest version of the @dwyl app
https://mvp.fly.dev
GNU General Public License v2.0
87 stars 2 forks source link

Chore: Move `api_test_mock_data.sql` to `seeds.exs` #278

Closed nelsonic closed 1 year ago

nelsonic commented 1 year ago

At present there is a api_test_mock_data.sql file:

https://github.com/dwyl/mvp/blob/e8df0173b981236301375d181cfa5ec9510ed9f1/lib/api/api_test_mock_data.sql#L1-L10

This seeds data for running the API Tests. As much as I prefer "raw" SQL to Ecto, this is not the Phoenix way of inserting seed data. As noted in: https://github.com/dwyl/mvp/pull/276#pullrequestreview-1264712918 we need to: