Django 的self.client.login(…)在unit testing中不起作用. 我用两种方法为我的unit testing创build了用户:. 1)创build一个“auth.user”的夹具,大致看起来像这样:
確定! 回上一頁