Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

CI test (post-commit) for example test data #259

Open
JulianVolodia opened this issue Sep 20, 2016 · 3 comments
Open

CI test (post-commit) for example test data #259

JulianVolodia opened this issue Sep 20, 2016 · 3 comments

Comments

@JulianVolodia
Copy link
Contributor

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

@WojtekReu
Copy link
Contributor

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.

@ppeczek
Copy link
Contributor

ppeczek commented Sep 23, 2016

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

@JulianVolodia
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants