Side Effects: pyramid.threadlocal.get_current_request() returns
a Pyramid DummyRequest instance.
+ pyramid_real_request_config
+ Input: path, \*\*kwargs
+
+ Is a (regular) Pyramid Configurator instance.
+
+ Side Effects: pyramid.threadlocal.get_current_request() returns
+ a (regular) Pyramid Request instance, created with a call to
+ pyramid.request.Request.blank(path, \*\*kwargs).
+
pgwui__component_entry_point
Input: A pgwui component name, as a string
from pgwui_testing import pytest_plugin_helpers
+import pyramid.request
+
# Fixtures
tearDown()
+@fixture
+def pyramid_real_request_config(path, **kwargs):
+ '''Returns a Pyramid "testing" Configurator() instance.
+
+ Input:
+ path An URL path
+ **kwargs Configuration for a WebOb environ and a Pyramid request
+
+ When called with a path and kwargs, establishes a real Pyramid
+ Request() instance made available via
+ pyramid.threadlocal.get_current_request(). Calling the fixture
+ passes the fixture's arguments to a call to
+ pyramid.request.Request.blank(), to create the request.
+ '''
+ request = pyramid.request.Request.blank(path, **kwargs)
+ yield setUp(request=request)
+ tearDown()
+
+
@fixture
def pgwui_component_entry_point():
'''Test that the supplied pgwui component is a pgui.components entry point