Пример #1
0
 def handle(self, *args, **options):
     size = int(options['size'])
     app_name = options['app_name']
     output_name = options['output_name']
     output_file = open(output_name + '.json', 'w')
     djenerator(app_name, size, output_file)
     output_file.close()
Пример #2
0
 def test(self):
     fl = tempfile.TemporaryFile()
     djenerator('tests', 1, fl, printing=False)
     fl.seek(0)
     length = len(fl.read())
     self.assertGreater(length, 600)