From 3670c2cdb732d378ba6d38e72e7cd875ff726aa9 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sun, 14 Oct 2018 21:11:41 -0500 Subject: move tests out of the package --- tests/pkgs/includeapp1/three.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/pkgs/includeapp1/three.py (limited to 'tests/pkgs/includeapp1/three.py') diff --git a/tests/pkgs/includeapp1/three.py b/tests/pkgs/includeapp1/three.py new file mode 100644 index 000000000..e7131bcf5 --- /dev/null +++ b/tests/pkgs/includeapp1/three.py @@ -0,0 +1,10 @@ +from pyramid.response import Response + +def aview(request): + return Response('three') + +def configure(config): + config.add_view(aview, name='three') + config.include('pyramid.tests.pkgs.includeapp1.two.configure') # should not cycle + config.add_view(aview) # will be overridden by root when resolved + -- cgit v1.2.3 From dd3cc81f75dcb5ff96e0751653071722a15f46c2 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sun, 14 Oct 2018 23:16:48 -0500 Subject: fix the tests to import from the tests package instead of pyramid.tests --- tests/pkgs/includeapp1/three.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pkgs/includeapp1/three.py') diff --git a/tests/pkgs/includeapp1/three.py b/tests/pkgs/includeapp1/three.py index e7131bcf5..973f91d99 100644 --- a/tests/pkgs/includeapp1/three.py +++ b/tests/pkgs/includeapp1/three.py @@ -5,6 +5,6 @@ def aview(request): def configure(config): config.add_view(aview, name='three') - config.include('pyramid.tests.pkgs.includeapp1.two.configure') # should not cycle + config.include('tests.pkgs.includeapp1.two.configure') # should not cycle config.add_view(aview) # will be overridden by root when resolved -- cgit v1.2.3