V
V
Vladimir Kuts2016-07-11 15:57:10
Django
Vladimir Kuts, 2016-07-11 15:57:10

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

1 answer(s)
S
sim3x, 2016-07-11
@fox_12

chimera.labs.oreilly.com/books/1234000000754/index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question