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/root.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/pkgs/includeapp1/root.py (limited to 'tests/pkgs/includeapp1/root.py') diff --git a/tests/pkgs/includeapp1/root.py b/tests/pkgs/includeapp1/root.py new file mode 100644 index 000000000..f56203cfa --- /dev/null +++ b/tests/pkgs/includeapp1/root.py @@ -0,0 +1,10 @@ +from pyramid.response import Response + +def aview(request): + return Response('root') + +def configure(config): + config.add_view(aview) + config.include('pyramid.tests.pkgs.includeapp1.two.configure') + config.commit() + -- 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/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pkgs/includeapp1/root.py') diff --git a/tests/pkgs/includeapp1/root.py b/tests/pkgs/includeapp1/root.py index f56203cfa..986356d81 100644 --- a/tests/pkgs/includeapp1/root.py +++ b/tests/pkgs/includeapp1/root.py @@ -5,6 +5,6 @@ def aview(request): def configure(config): config.add_view(aview) - config.include('pyramid.tests.pkgs.includeapp1.two.configure') + config.include('tests.pkgs.includeapp1.two.configure') config.commit() -- cgit v1.2.3