Politikon icon indicating copy to clipboard operation
Politikon copied to clipboard

CI test (post-commit) for example test data

Open JulianVolodia opened this issue 8 years ago • 3 comments

In my opinion there should be integration check on DB structure and example test data (from JSON file).

JulianVolodia avatar Sep 20 '16 22:09 JulianVolodia

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.

WojtekReu avatar Sep 21 '16 17:09 WojtekReu

But still, we can test it automatically. What do you think about it, @WojtekReu ?

ppeczek avatar Sep 23 '16 08:09 ppeczek

Up. @WojtekReu testing (even with that flag) is good in your opinion?

JulianVolodia avatar Oct 07 '16 10:10 JulianVolodia