Politikon
Politikon copied to clipboard
CI test (post-commit) for example test data
In my opinion there should be integration check on DB structure and example test data (from JSON file).
Try to use --ignorenonexistent: python manage.py loaddata --ignorenonexistent db_dumps/local_test_data.json If data file structure is wrong then it is better to load it using json.loads(data_string) then change it and json.dumps(data_dict) write to file.
But still, we can test it automatically. What do you think about it, @WojtekReu ?
Up. @WojtekReu testing (even with that flag) is good in your opinion?