summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/src/views
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2020-11-11 21:53:35 -0800
committerTheron Luhn <theron@luhn.com>2020-11-11 21:53:35 -0800
commit86cb46d4d977d3a948308326bee628421cab93ea (patch)
tree3bc6ef74b9708e4f3c0efe6a0e2f635e8183664b /docs/tutorials/wiki2/src/views
parent042a2b9967f23757393ee099f5c2016d6fb68107 (diff)
downloadpyramid-86cb46d4d977d3a948308326bee628421cab93ea.tar.gz
pyramid-86cb46d4d977d3a948308326bee628421cab93ea.tar.bz2
pyramid-86cb46d4d977d3a948308326bee628421cab93ea.zip
Remove `app_request` from wiki2 tests.
Diffstat (limited to 'docs/tutorials/wiki2/src/views')
-rw-r--r--docs/tutorials/wiki2/src/views/tests/conftest.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/docs/tutorials/wiki2/src/views/tests/conftest.py b/docs/tutorials/wiki2/src/views/tests/conftest.py
index 347180600..57e86ac1c 100644
--- a/docs/tutorials/wiki2/src/views/tests/conftest.py
+++ b/docs/tutorials/wiki2/src/views/tests/conftest.py
@@ -3,7 +3,6 @@ import alembic.config
import alembic.command
import os
from pyramid.paster import get_appsettings
-from pyramid.scripting import prepare
from pyramid.testing import DummyRequest, testConfig
import pytest
import transaction
@@ -81,28 +80,6 @@ def testapp(app, tm, dbsession):
return testapp
@pytest.fixture
-def app_request(app, tm, dbsession):
- """
- A real request.
-
- This request is almost identical to a real request but it has some
- drawbacks in tests as it's harder to mock data and is heavier.
-
- """
- env = prepare(registry=app.registry)
- request = env['request']
- request.host = 'example.com'
-
- # without this, request.dbsession will be joined to the same transaction
- # manager but it will be using a different sqlalchemy.orm.Session using
- # a separate database transaction
- request.dbsession = dbsession
- request.tm = tm
-
- yield request
- env['closer']()
-
-@pytest.fixture
def dummy_request(tm, dbsession):
"""
A lightweight dummy request.