Z
Z
zlodiak2019-04-27 20:05:41
Python
zlodiak, 2019-04-27 20:05:41

How to generate multiple mocks?

For python, there is a nimesis package, with which you can generate mocks and immediately fill a table in the database with them. This is done as follows:
1. create a file
2. import a model not into it 3. in a loop describe the
order of generating data based on this model But when there are a lot of files, it is tedious to enter a bunch of commands in the console. Can you please tell me if this process can be automated?
MyModelClass().generate_method()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question