我是Pytest 的新手。我想测试我需要登录的View (用 @login_required 装饰)。 我有以下测试功能: def test_add_new_post(self, client, user): login_user(user) assert ...
確定! 回上一頁