Have you tried Flask integrated unit testing tools?
You can make post requests with them, so that you can log in log out and act as authenticated users. I don't know if that is sufficient for you, perhaps you need some more advanced stuff, but you can give it a try.