add conftest.py that mocks out tg context
diff --git a/conftest.py b/conftest.py
new file mode 100644
index 0000000..5c76dd4
--- /dev/null
+++ b/conftest.py
@@ -0,0 +1,24 @@
+import pytest
+
+# should get rid of this once this issue is fixed https://github.com/TurboGears/tg2/issues/136
+@pytest.fixture(autouse=True, scope='session')
+def tg_context_patch():
+ from tg import (
+ request as r,
+ tmpl_context as c,
+ app_globals as g,
+ cache,
+ response,
+ translator,
+ url,
+ config,
+ )
+ r.__dict__['_is_coroutine'] = False
+ c.__dict__['_is_coroutine'] = False
+ g.__dict__['_is_coroutine'] = False
+ cache.__dict__['_is_coroutine'] = False
+ response.__dict__['_is_coroutine'] = False
+ translator.__dict__['_is_coroutine'] = False
+ url.__dict__['_is_coroutine'] = False
+ config.__dict__['_is_coroutine'] = False
+
\ No newline at end of file