Issue with passing a file object as an argument of Django command

后端 未结 0 1379
无人及你
无人及你 2021-01-27 04:26

I\'m trying to test a Django command by passing a file object as an argument:

a_file = open(\'Sample.xml\', \'rb\') call_command("process_xml", a_file, self.val

相关标签:
回答
  • 消灭零回复
提交回复
热议问题