Hello!
I would like to learn the best practise of testing pulsar applications. For example, I have a class like this:
class Web(wsgi.LazyWsgi):
def setup(self, environ):
return wsgi.WsgiHandler([
wsgi.Router('/', get=self.test_page),
])
async def test_page(self, request):
# do something
And I want to test test_page method. So, I would like to run some kind of fake-http-server, make fake-http requests to it. How can it be acheived?
I've tried using test_wsgi_environ and WsgiRequest, but it doesn't always work. So, it seems to be a not-so-elegant solution.
So, any your advice will be extremely helpful