import pytest import falcon # NOTE(kgriffs): Some modules actually run a wsgiref server, so # to ensure we reset the detection for the other modules, we just # run this fixture before each one is tested. @pytest.fixture(autouse=True, scope='module') def reset_request_stream_detection(): falcon.Request._wsgi_input_type_known = False falcon.Request._always_wrap_wsgi_input = False