How do I mock a session? When mocking a user, it needs to set session.permanent but is outside of context

后端 未结 0 1152
悲哀的现实
悲哀的现实 2021-01-16 11:25

I have a user profile function I want to test. Inside of it, it carries out flask\'s login_use functionality, but then references session. I am trying to mock a session to

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