Answer the question
In order to leave comments, you need to log in
Testing in Django - best practices?
We have an application written in Django, containing many related models.
I need to write testing of some separate functionality for automated tests.
Testing requires a set of some test data. The database is now on the order of hundreds of megabytes. Making a fixture on its base and storing hundreds of megabytes of data in the repository just for testing is not an option. In addition, there is a lot of confidential information.
Sitting digging into relationships and trying to create a fixture manually based on them is a lot of extra routine work, and django swears - it suggests using migrations to load the initial data.
In addition, with any change in models, you will have to mess around again.
В общем - хотелось бы этот процесс наполнения базы набором случайных данных для тестирования каким-то образом автоматизировать.
Каким образом лучше всего данная проблема решается? - есть ли готовые решения облегчающие работу?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question