diff options
| author | Chris McDonough <chrism@plope.com> | 2011-09-01 01:32:27 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-09-01 01:32:27 -0400 |
| commit | 24b1c8b3b1d58597765f94a037524f1b29f1c976 (patch) | |
| tree | 51c1af16dce1a286b9bd4ac2626d3a7ff8bf776c | |
| parent | 2075f86ed94804932873f2ad0bd464a28cb305a9 (diff) | |
| download | pyramid-24b1c8b3b1d58597765f94a037524f1b29f1c976.tar.gz pyramid-24b1c8b3b1d58597765f94a037524f1b29f1c976.tar.bz2 pyramid-24b1c8b3b1d58597765f94a037524f1b29f1c976.zip | |
move fixture packages into pkgs subdir of tests
| -rw-r--r-- | pyramid/tests/pkgs/__init__.py (renamed from pyramid/tests/viewdecoratorapp/views/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/ccbugapp/__init__.py (renamed from pyramid/tests/ccbugapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/conflictapp/__init__.py (renamed from pyramid/tests/conflictapp/__init__.py) | 2 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/conflictapp/included.py (renamed from pyramid/tests/conflictapp/included.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/defpermbugapp/__init__.py (renamed from pyramid/tests/defpermbugapp/__init__.py) | 2 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/exceptionviewapp/__init__.py (renamed from pyramid/tests/exceptionviewapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/exceptionviewapp/models.py (renamed from pyramid/tests/exceptionviewapp/models.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/exceptionviewapp/views.py (renamed from pyramid/tests/exceptionviewapp/views.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/fixtureapp/__init__.py (renamed from pyramid/tests/fixtureapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/fixtureapp/models.py (renamed from pyramid/tests/fixtureapp/models.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/fixtureapp/subpackage/__init__.py (renamed from pyramid/tests/fixtureapp/subpackage/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/fixtureapp/subpackage/templates/bar.pt (renamed from pyramid/tests/fixtureapp/subpackage/templates/bar.pt) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/fixtureapp/templates/fixture.pt (renamed from pyramid/tests/fixtureapp/templates/fixture.pt) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/fixtureapp/views.py (renamed from pyramid/tests/fixtureapp/views.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/forbiddenapp/__init__.py (renamed from pyramid/tests/forbiddenapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/hybridapp/__init__.py (renamed from pyramid/tests/hybridapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/hybridapp/views.py (renamed from pyramid/tests/hybridapp/views.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/includeapp1/__init__.py (renamed from pyramid/tests/includeapp1/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/includeapp1/root.py (renamed from pyramid/tests/includeapp1/root.py) | 2 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/includeapp1/three.py (renamed from pyramid/tests/includeapp1/three.py) | 2 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/includeapp1/two.py (renamed from pyramid/tests/includeapp1/two.py) | 2 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/__init__.py (renamed from pyramid/tests/localeapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale/GARBAGE (renamed from pyramid/tests/localeapp/locale/GARBAGE) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale/be/LC_MESSAGES (renamed from pyramid/tests/localeapp/locale/be/LC_MESSAGES) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale/de/LC_MESSAGES/deformsite.mo (renamed from pyramid/tests/localeapp/locale/de/LC_MESSAGES/deformsite.mo) | bin | 543 -> 543 bytes | |||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale/de/LC_MESSAGES/deformsite.po (renamed from pyramid/tests/localeapp/locale/de/LC_MESSAGES/deformsite.po) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale/en/LC_MESSAGES/deformsite.mo (renamed from pyramid/tests/localeapp/locale/en/LC_MESSAGES/deformsite.mo) | bin | 543 -> 543 bytes | |||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale/en/LC_MESSAGES/deformsite.po (renamed from pyramid/tests/localeapp/locale/en/LC_MESSAGES/deformsite.po) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale2/GARBAGE (renamed from pyramid/tests/localeapp/locale2/GARBAGE) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale2/be/LC_MESSAGES (renamed from pyramid/tests/localeapp/locale2/be/LC_MESSAGES) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale2/de/LC_MESSAGES/deformsite.mo (renamed from pyramid/tests/localeapp/locale2/de/LC_MESSAGES/deformsite.mo) | bin | 543 -> 543 bytes | |||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale2/de/LC_MESSAGES/deformsite.po (renamed from pyramid/tests/localeapp/locale2/de/LC_MESSAGES/deformsite.po) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale2/en/LC_MESSAGES/deformsite.mo (renamed from pyramid/tests/localeapp/locale2/en/LC_MESSAGES/deformsite.mo) | bin | 543 -> 543 bytes | |||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale2/en/LC_MESSAGES/deformsite.po (renamed from pyramid/tests/localeapp/locale2/en/LC_MESSAGES/deformsite.po) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale3/GARBAGE (renamed from pyramid/tests/localeapp/locale3/GARBAGE) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale3/be/LC_MESSAGES (renamed from pyramid/tests/localeapp/locale3/be/LC_MESSAGES) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale3/de/LC_MESSAGES/deformsite.mo (renamed from pyramid/tests/localeapp/locale3/de/LC_MESSAGES/deformsite.mo) | bin | 543 -> 543 bytes | |||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale3/de/LC_MESSAGES/deformsite.po (renamed from pyramid/tests/localeapp/locale3/de/LC_MESSAGES/deformsite.po) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale3/en/LC_MESSAGES/deformsite.mo (renamed from pyramid/tests/localeapp/locale3/en/LC_MESSAGES/deformsite.mo) | bin | 543 -> 543 bytes | |||
| -rw-r--r-- | pyramid/tests/pkgs/localeapp/locale3/en/LC_MESSAGES/deformsite.po (renamed from pyramid/tests/localeapp/locale3/en/LC_MESSAGES/deformsite.po) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/permbugapp/__init__.py (renamed from pyramid/tests/permbugapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/rendererscanapp/__init__.py (renamed from pyramid/tests/rendererscanapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/rendererscanapp/one.pt (renamed from pyramid/tests/rendererscanapp/one.pt) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/rendererscanapp/two/__init__.py (renamed from pyramid/tests/rendererscanapp/two/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/rendererscanapp/two/two.pt (renamed from pyramid/tests/rendererscanapp/two/two.pt) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/restbugapp/__init__.py (renamed from pyramid/tests/restbugapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/restbugapp/views.py (renamed from pyramid/tests/restbugapp/views.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/staticpermapp/__init__.py (renamed from pyramid/tests/staticpermapp/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/viewdecoratorapp/__init__.py | 3 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/viewdecoratorapp/views/__init__.py | 1 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/viewdecoratorapp/views/templates/foo.mak (renamed from pyramid/tests/viewdecoratorapp/views/templates/foo.mak) | 0 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/viewdecoratorapp/views/views.py (renamed from pyramid/tests/viewdecoratorapp/views/views.py) | 3 | ||||
| -rw-r--r-- | pyramid/tests/pkgs/wsgiapp2app/__init__.py (renamed from pyramid/tests/wsgiapp2app/__init__.py) | 0 | ||||
| -rw-r--r-- | pyramid/tests/test_config/test_i18n.py | 22 | ||||
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 1 | ||||
| -rw-r--r-- | pyramid/tests/test_i18n.py | 34 | ||||
| -rw-r--r-- | pyramid/tests/test_integration.py | 39 | ||||
| -rw-r--r-- | pyramid/tests/viewdecoratorapp/__init__.py | 3 |
58 files changed, 47 insertions, 69 deletions
diff --git a/pyramid/tests/viewdecoratorapp/views/__init__.py b/pyramid/tests/pkgs/__init__.py index 5bb534f79..5bb534f79 100644 --- a/pyramid/tests/viewdecoratorapp/views/__init__.py +++ b/pyramid/tests/pkgs/__init__.py diff --git a/pyramid/tests/ccbugapp/__init__.py b/pyramid/tests/pkgs/ccbugapp/__init__.py index afe21d4e0..afe21d4e0 100644 --- a/pyramid/tests/ccbugapp/__init__.py +++ b/pyramid/tests/pkgs/ccbugapp/__init__.py diff --git a/pyramid/tests/conflictapp/__init__.py b/pyramid/tests/pkgs/conflictapp/__init__.py index 429237973..07bef0832 100644 --- a/pyramid/tests/conflictapp/__init__.py +++ b/pyramid/tests/pkgs/conflictapp/__init__.py @@ -20,4 +20,4 @@ def includeme(config): config.add_route('aroute', '/route') config.set_authentication_policy(AuthTktAuthenticationPolicy('seekri1t')) config.set_authorization_policy(ACLAuthorizationPolicy()) - config.include('pyramid.tests.conflictapp.included') + config.include('pyramid.tests.pkgs.conflictapp.included') diff --git a/pyramid/tests/conflictapp/included.py b/pyramid/tests/pkgs/conflictapp/included.py index 0b76fb2bc..0b76fb2bc 100644 --- a/pyramid/tests/conflictapp/included.py +++ b/pyramid/tests/pkgs/conflictapp/included.py diff --git a/pyramid/tests/defpermbugapp/__init__.py b/pyramid/tests/pkgs/defpermbugapp/__init__.py index 49602749c..1ce0ff32d 100644 --- a/pyramid/tests/defpermbugapp/__init__.py +++ b/pyramid/tests/pkgs/defpermbugapp/__init__.py @@ -19,7 +19,7 @@ def includeme(config): from pyramid.authentication import AuthTktAuthenticationPolicy authn_policy = AuthTktAuthenticationPolicy('seekt1t') authz_policy = ACLAuthorizationPolicy() - config.scan('pyramid.tests.defpermbugapp') + config.scan('pyramid.tests.pkgs.defpermbugapp') config._set_authentication_policy(authn_policy) config._set_authorization_policy(authz_policy) config.set_default_permission('private') diff --git a/pyramid/tests/exceptionviewapp/__init__.py b/pyramid/tests/pkgs/exceptionviewapp/__init__.py index f169e0cd5..f169e0cd5 100644 --- a/pyramid/tests/exceptionviewapp/__init__.py +++ b/pyramid/tests/pkgs/exceptionviewapp/__init__.py diff --git a/pyramid/tests/exceptionviewapp/models.py b/pyramid/tests/pkgs/exceptionviewapp/models.py index fe407badc..fe407badc 100644 --- a/pyramid/tests/exceptionviewapp/models.py +++ b/pyramid/tests/pkgs/exceptionviewapp/models.py diff --git a/pyramid/tests/exceptionviewapp/views.py b/pyramid/tests/pkgs/exceptionviewapp/views.py index 1432618cf..1432618cf 100644 --- a/pyramid/tests/exceptionviewapp/views.py +++ b/pyramid/tests/pkgs/exceptionviewapp/views.py diff --git a/pyramid/tests/fixtureapp/__init__.py b/pyramid/tests/pkgs/fixtureapp/__init__.py index c74747bfd..c74747bfd 100644 --- a/pyramid/tests/fixtureapp/__init__.py +++ b/pyramid/tests/pkgs/fixtureapp/__init__.py diff --git a/pyramid/tests/fixtureapp/models.py b/pyramid/tests/pkgs/fixtureapp/models.py index d80d14bb3..d80d14bb3 100644 --- a/pyramid/tests/fixtureapp/models.py +++ b/pyramid/tests/pkgs/fixtureapp/models.py diff --git a/pyramid/tests/fixtureapp/subpackage/__init__.py b/pyramid/tests/pkgs/fixtureapp/subpackage/__init__.py index d3173e636..d3173e636 100644 --- a/pyramid/tests/fixtureapp/subpackage/__init__.py +++ b/pyramid/tests/pkgs/fixtureapp/subpackage/__init__.py diff --git a/pyramid/tests/fixtureapp/subpackage/templates/bar.pt b/pyramid/tests/pkgs/fixtureapp/subpackage/templates/bar.pt index 90531a4b3..90531a4b3 100644 --- a/pyramid/tests/fixtureapp/subpackage/templates/bar.pt +++ b/pyramid/tests/pkgs/fixtureapp/subpackage/templates/bar.pt diff --git a/pyramid/tests/fixtureapp/templates/fixture.pt b/pyramid/tests/pkgs/fixtureapp/templates/fixture.pt index 06dd4e2b1..06dd4e2b1 100644 --- a/pyramid/tests/fixtureapp/templates/fixture.pt +++ b/pyramid/tests/pkgs/fixtureapp/templates/fixture.pt diff --git a/pyramid/tests/fixtureapp/views.py b/pyramid/tests/pkgs/fixtureapp/views.py index cbfc5a574..cbfc5a574 100644 --- a/pyramid/tests/fixtureapp/views.py +++ b/pyramid/tests/pkgs/fixtureapp/views.py diff --git a/pyramid/tests/forbiddenapp/__init__.py b/pyramid/tests/pkgs/forbiddenapp/__init__.py index 7001b87f5..7001b87f5 100644 --- a/pyramid/tests/forbiddenapp/__init__.py +++ b/pyramid/tests/pkgs/forbiddenapp/__init__.py diff --git a/pyramid/tests/hybridapp/__init__.py b/pyramid/tests/pkgs/hybridapp/__init__.py index 1cc2dde83..1cc2dde83 100644 --- a/pyramid/tests/hybridapp/__init__.py +++ b/pyramid/tests/pkgs/hybridapp/__init__.py diff --git a/pyramid/tests/hybridapp/views.py b/pyramid/tests/pkgs/hybridapp/views.py index 135ef8290..135ef8290 100644 --- a/pyramid/tests/hybridapp/views.py +++ b/pyramid/tests/pkgs/hybridapp/views.py diff --git a/pyramid/tests/includeapp1/__init__.py b/pyramid/tests/pkgs/includeapp1/__init__.py index eaeeb7ef6..eaeeb7ef6 100644 --- a/pyramid/tests/includeapp1/__init__.py +++ b/pyramid/tests/pkgs/includeapp1/__init__.py diff --git a/pyramid/tests/includeapp1/root.py b/pyramid/tests/pkgs/includeapp1/root.py index 3b042c8c2..f56203cfa 100644 --- a/pyramid/tests/includeapp1/root.py +++ b/pyramid/tests/pkgs/includeapp1/root.py @@ -5,6 +5,6 @@ def aview(request): def configure(config): config.add_view(aview) - config.include('pyramid.tests.includeapp1.two.configure') + config.include('pyramid.tests.pkgs.includeapp1.two.configure') config.commit() diff --git a/pyramid/tests/includeapp1/three.py b/pyramid/tests/pkgs/includeapp1/three.py index de7268bb6..e7131bcf5 100644 --- a/pyramid/tests/includeapp1/three.py +++ b/pyramid/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.includeapp1.two.configure') # should not cycle + config.include('pyramid.tests.pkgs.includeapp1.two.configure') # should not cycle config.add_view(aview) # will be overridden by root when resolved diff --git a/pyramid/tests/includeapp1/two.py b/pyramid/tests/pkgs/includeapp1/two.py index 960d77e3d..99b0f883a 100644 --- a/pyramid/tests/includeapp1/two.py +++ b/pyramid/tests/pkgs/includeapp1/two.py @@ -5,5 +5,5 @@ def aview(request): def configure(config): config.add_view(aview, name='two') - config.include('pyramid.tests.includeapp1.three.configure') + config.include('pyramid.tests.pkgs.includeapp1.three.configure') config.add_view(aview) # will be overridden by root when resolved diff --git a/pyramid/tests/localeapp/__init__.py b/pyramid/tests/pkgs/localeapp/__init__.py index 1a35cdb4a..1a35cdb4a 100644 --- a/pyramid/tests/localeapp/__init__.py +++ b/pyramid/tests/pkgs/localeapp/__init__.py diff --git a/pyramid/tests/localeapp/locale/GARBAGE b/pyramid/tests/pkgs/localeapp/locale/GARBAGE index 032c55584..032c55584 100644 --- a/pyramid/tests/localeapp/locale/GARBAGE +++ b/pyramid/tests/pkgs/localeapp/locale/GARBAGE diff --git a/pyramid/tests/localeapp/locale/be/LC_MESSAGES b/pyramid/tests/pkgs/localeapp/locale/be/LC_MESSAGES index 909cf6a3b..909cf6a3b 100644 --- a/pyramid/tests/localeapp/locale/be/LC_MESSAGES +++ b/pyramid/tests/pkgs/localeapp/locale/be/LC_MESSAGES diff --git a/pyramid/tests/localeapp/locale/de/LC_MESSAGES/deformsite.mo b/pyramid/tests/pkgs/localeapp/locale/de/LC_MESSAGES/deformsite.mo Binary files differindex 2924a5eb5..2924a5eb5 100644 --- a/pyramid/tests/localeapp/locale/de/LC_MESSAGES/deformsite.mo +++ b/pyramid/tests/pkgs/localeapp/locale/de/LC_MESSAGES/deformsite.mo diff --git a/pyramid/tests/localeapp/locale/de/LC_MESSAGES/deformsite.po b/pyramid/tests/pkgs/localeapp/locale/de/LC_MESSAGES/deformsite.po index 17f87bc19..17f87bc19 100644 --- a/pyramid/tests/localeapp/locale/de/LC_MESSAGES/deformsite.po +++ b/pyramid/tests/pkgs/localeapp/locale/de/LC_MESSAGES/deformsite.po diff --git a/pyramid/tests/localeapp/locale/en/LC_MESSAGES/deformsite.mo b/pyramid/tests/pkgs/localeapp/locale/en/LC_MESSAGES/deformsite.mo Binary files differindex 2924a5eb5..2924a5eb5 100644 --- a/pyramid/tests/localeapp/locale/en/LC_MESSAGES/deformsite.mo +++ b/pyramid/tests/pkgs/localeapp/locale/en/LC_MESSAGES/deformsite.mo diff --git a/pyramid/tests/localeapp/locale/en/LC_MESSAGES/deformsite.po b/pyramid/tests/pkgs/localeapp/locale/en/LC_MESSAGES/deformsite.po index 17f87bc19..17f87bc19 100644 --- a/pyramid/tests/localeapp/locale/en/LC_MESSAGES/deformsite.po +++ b/pyramid/tests/pkgs/localeapp/locale/en/LC_MESSAGES/deformsite.po diff --git a/pyramid/tests/localeapp/locale2/GARBAGE b/pyramid/tests/pkgs/localeapp/locale2/GARBAGE index 032c55584..032c55584 100644 --- a/pyramid/tests/localeapp/locale2/GARBAGE +++ b/pyramid/tests/pkgs/localeapp/locale2/GARBAGE diff --git a/pyramid/tests/localeapp/locale2/be/LC_MESSAGES b/pyramid/tests/pkgs/localeapp/locale2/be/LC_MESSAGES index 909cf6a3b..909cf6a3b 100644 --- a/pyramid/tests/localeapp/locale2/be/LC_MESSAGES +++ b/pyramid/tests/pkgs/localeapp/locale2/be/LC_MESSAGES diff --git a/pyramid/tests/localeapp/locale2/de/LC_MESSAGES/deformsite.mo b/pyramid/tests/pkgs/localeapp/locale2/de/LC_MESSAGES/deformsite.mo Binary files differindex 2924a5eb5..2924a5eb5 100644 --- a/pyramid/tests/localeapp/locale2/de/LC_MESSAGES/deformsite.mo +++ b/pyramid/tests/pkgs/localeapp/locale2/de/LC_MESSAGES/deformsite.mo diff --git a/pyramid/tests/localeapp/locale2/de/LC_MESSAGES/deformsite.po b/pyramid/tests/pkgs/localeapp/locale2/de/LC_MESSAGES/deformsite.po index 17f87bc19..17f87bc19 100644 --- a/pyramid/tests/localeapp/locale2/de/LC_MESSAGES/deformsite.po +++ b/pyramid/tests/pkgs/localeapp/locale2/de/LC_MESSAGES/deformsite.po diff --git a/pyramid/tests/localeapp/locale2/en/LC_MESSAGES/deformsite.mo b/pyramid/tests/pkgs/localeapp/locale2/en/LC_MESSAGES/deformsite.mo Binary files differindex 2924a5eb5..2924a5eb5 100644 --- a/pyramid/tests/localeapp/locale2/en/LC_MESSAGES/deformsite.mo +++ b/pyramid/tests/pkgs/localeapp/locale2/en/LC_MESSAGES/deformsite.mo diff --git a/pyramid/tests/localeapp/locale2/en/LC_MESSAGES/deformsite.po b/pyramid/tests/pkgs/localeapp/locale2/en/LC_MESSAGES/deformsite.po index 17f87bc19..17f87bc19 100644 --- a/pyramid/tests/localeapp/locale2/en/LC_MESSAGES/deformsite.po +++ b/pyramid/tests/pkgs/localeapp/locale2/en/LC_MESSAGES/deformsite.po diff --git a/pyramid/tests/localeapp/locale3/GARBAGE b/pyramid/tests/pkgs/localeapp/locale3/GARBAGE index 032c55584..032c55584 100644 --- a/pyramid/tests/localeapp/locale3/GARBAGE +++ b/pyramid/tests/pkgs/localeapp/locale3/GARBAGE diff --git a/pyramid/tests/localeapp/locale3/be/LC_MESSAGES b/pyramid/tests/pkgs/localeapp/locale3/be/LC_MESSAGES index 909cf6a3b..909cf6a3b 100644 --- a/pyramid/tests/localeapp/locale3/be/LC_MESSAGES +++ b/pyramid/tests/pkgs/localeapp/locale3/be/LC_MESSAGES diff --git a/pyramid/tests/localeapp/locale3/de/LC_MESSAGES/deformsite.mo b/pyramid/tests/pkgs/localeapp/locale3/de/LC_MESSAGES/deformsite.mo Binary files differindex 2924a5eb5..2924a5eb5 100644 --- a/pyramid/tests/localeapp/locale3/de/LC_MESSAGES/deformsite.mo +++ b/pyramid/tests/pkgs/localeapp/locale3/de/LC_MESSAGES/deformsite.mo diff --git a/pyramid/tests/localeapp/locale3/de/LC_MESSAGES/deformsite.po b/pyramid/tests/pkgs/localeapp/locale3/de/LC_MESSAGES/deformsite.po index 17f87bc19..17f87bc19 100644 --- a/pyramid/tests/localeapp/locale3/de/LC_MESSAGES/deformsite.po +++ b/pyramid/tests/pkgs/localeapp/locale3/de/LC_MESSAGES/deformsite.po diff --git a/pyramid/tests/localeapp/locale3/en/LC_MESSAGES/deformsite.mo b/pyramid/tests/pkgs/localeapp/locale3/en/LC_MESSAGES/deformsite.mo Binary files differindex 2924a5eb5..2924a5eb5 100644 --- a/pyramid/tests/localeapp/locale3/en/LC_MESSAGES/deformsite.mo +++ b/pyramid/tests/pkgs/localeapp/locale3/en/LC_MESSAGES/deformsite.mo diff --git a/pyramid/tests/localeapp/locale3/en/LC_MESSAGES/deformsite.po b/pyramid/tests/pkgs/localeapp/locale3/en/LC_MESSAGES/deformsite.po index 17f87bc19..17f87bc19 100644 --- a/pyramid/tests/localeapp/locale3/en/LC_MESSAGES/deformsite.po +++ b/pyramid/tests/pkgs/localeapp/locale3/en/LC_MESSAGES/deformsite.po diff --git a/pyramid/tests/permbugapp/__init__.py b/pyramid/tests/pkgs/permbugapp/__init__.py index 10a244f3b..10a244f3b 100644 --- a/pyramid/tests/permbugapp/__init__.py +++ b/pyramid/tests/pkgs/permbugapp/__init__.py diff --git a/pyramid/tests/rendererscanapp/__init__.py b/pyramid/tests/pkgs/rendererscanapp/__init__.py index 1baec0940..1baec0940 100644 --- a/pyramid/tests/rendererscanapp/__init__.py +++ b/pyramid/tests/pkgs/rendererscanapp/__init__.py diff --git a/pyramid/tests/rendererscanapp/one.pt b/pyramid/tests/pkgs/rendererscanapp/one.pt index 42114d94f..42114d94f 100644 --- a/pyramid/tests/rendererscanapp/one.pt +++ b/pyramid/tests/pkgs/rendererscanapp/one.pt diff --git a/pyramid/tests/rendererscanapp/two/__init__.py b/pyramid/tests/pkgs/rendererscanapp/two/__init__.py index be0077fcb..be0077fcb 100644 --- a/pyramid/tests/rendererscanapp/two/__init__.py +++ b/pyramid/tests/pkgs/rendererscanapp/two/__init__.py diff --git a/pyramid/tests/rendererscanapp/two/two.pt b/pyramid/tests/pkgs/rendererscanapp/two/two.pt index 7eff97c22..7eff97c22 100644 --- a/pyramid/tests/rendererscanapp/two/two.pt +++ b/pyramid/tests/pkgs/rendererscanapp/two/two.pt diff --git a/pyramid/tests/restbugapp/__init__.py b/pyramid/tests/pkgs/restbugapp/__init__.py index 9ad79e32e..9ad79e32e 100644 --- a/pyramid/tests/restbugapp/__init__.py +++ b/pyramid/tests/pkgs/restbugapp/__init__.py diff --git a/pyramid/tests/restbugapp/views.py b/pyramid/tests/pkgs/restbugapp/views.py index 2ace59fa9..2ace59fa9 100644 --- a/pyramid/tests/restbugapp/views.py +++ b/pyramid/tests/pkgs/restbugapp/views.py diff --git a/pyramid/tests/staticpermapp/__init__.py b/pyramid/tests/pkgs/staticpermapp/__init__.py index cc690d937..cc690d937 100644 --- a/pyramid/tests/staticpermapp/__init__.py +++ b/pyramid/tests/pkgs/staticpermapp/__init__.py diff --git a/pyramid/tests/pkgs/viewdecoratorapp/__init__.py b/pyramid/tests/pkgs/viewdecoratorapp/__init__.py new file mode 100644 index 000000000..5fa98062a --- /dev/null +++ b/pyramid/tests/pkgs/viewdecoratorapp/__init__.py @@ -0,0 +1,3 @@ +def includeme(config): + config.scan('pyramid.tests.pkgs.viewdecoratorapp') + diff --git a/pyramid/tests/pkgs/viewdecoratorapp/views/__init__.py b/pyramid/tests/pkgs/viewdecoratorapp/views/__init__.py new file mode 100644 index 000000000..5bb534f79 --- /dev/null +++ b/pyramid/tests/pkgs/viewdecoratorapp/views/__init__.py @@ -0,0 +1 @@ +# package diff --git a/pyramid/tests/viewdecoratorapp/views/templates/foo.mak b/pyramid/tests/pkgs/viewdecoratorapp/views/templates/foo.mak index 6a2f701b6..6a2f701b6 100644 --- a/pyramid/tests/viewdecoratorapp/views/templates/foo.mak +++ b/pyramid/tests/pkgs/viewdecoratorapp/views/templates/foo.mak diff --git a/pyramid/tests/viewdecoratorapp/views/views.py b/pyramid/tests/pkgs/viewdecoratorapp/views/views.py index 0b3147c86..6f7ff1e21 100644 --- a/pyramid/tests/viewdecoratorapp/views/views.py +++ b/pyramid/tests/pkgs/viewdecoratorapp/views/views.py @@ -4,7 +4,8 @@ from pyramid.view import view_config def first(request): return {'result':'OK1'} -@view_config(renderer='pyramid.tests.viewdecoratorapp.views:templates/foo.mak', +@view_config( + renderer='pyramid.tests.pkgs.viewdecoratorapp.views:templates/foo.mak', name='second') def second(request): return {'result':'OK2'} diff --git a/pyramid/tests/wsgiapp2app/__init__.py b/pyramid/tests/pkgs/wsgiapp2app/__init__.py index 0880556ef..0880556ef 100644 --- a/pyramid/tests/wsgiapp2app/__init__.py +++ b/pyramid/tests/pkgs/wsgiapp2app/__init__.py diff --git a/pyramid/tests/test_config/test_i18n.py b/pyramid/tests/test_config/test_i18n.py index 3fdbf76e3..03b410445 100644 --- a/pyramid/tests/test_config/test_i18n.py +++ b/pyramid/tests/test_config/test_i18n.py @@ -5,11 +5,11 @@ from pyramid.tests.test_config import dummyfactory here = os.path.dirname(__file__) locale = os.path.abspath( - os.path.join(here, '..', 'localeapp', 'locale')) + os.path.join(here, '..', 'pkgs', 'localeapp', 'locale')) locale2 = os.path.abspath( - os.path.join(here, '..', 'localeapp', 'locale2')) + os.path.join(here, '..', 'pkgs', 'localeapp', 'locale2')) locale3 = os.path.abspath( - os.path.join(here, '..', 'localeapp', 'locale3')) + os.path.join(here, '..', 'pkgs', 'localeapp', 'locale3')) class TestI18NConfiguratorMixin(unittest.TestCase): def _makeOne(self, *arg, **kw): @@ -53,7 +53,7 @@ class TestI18NConfiguratorMixin(unittest.TestCase): def test_add_translation_dirs_asset_spec(self): from pyramid.interfaces import ITranslationDirectories config = self._makeOne(autocommit=True) - config.add_translation_dirs('pyramid.tests.localeapp:locale') + config.add_translation_dirs('pyramid.tests.pkgs.localeapp:locale') self.assertEqual(config.registry.getUtility(ITranslationDirectories), [locale]) @@ -62,24 +62,24 @@ class TestI18NConfiguratorMixin(unittest.TestCase): config = self._makeOne(autocommit=True) directories = ['abc'] config.registry.registerUtility(directories, ITranslationDirectories) - config.add_translation_dirs('pyramid.tests.localeapp:locale') + config.add_translation_dirs('pyramid.tests.pkgs.localeapp:locale') result = config.registry.getUtility(ITranslationDirectories) self.assertEqual(result, [locale, 'abc']) def test_add_translation_dirs_multiple_specs(self): from pyramid.interfaces import ITranslationDirectories config = self._makeOne(autocommit=True) - config.add_translation_dirs('pyramid.tests.localeapp:locale', - 'pyramid.tests.localeapp:locale2') + config.add_translation_dirs('pyramid.tests.pkgs.localeapp:locale', + 'pyramid.tests.pkgs.localeapp:locale2') self.assertEqual(config.registry.getUtility(ITranslationDirectories), [locale, locale2]) def test_add_translation_dirs_multiple_specs_multiple_calls(self): from pyramid.interfaces import ITranslationDirectories config = self._makeOne(autocommit=True) - config.add_translation_dirs('pyramid.tests.localeapp:locale', - 'pyramid.tests.localeapp:locale2') - config.add_translation_dirs('pyramid.tests.localeapp:locale3') + config.add_translation_dirs('pyramid.tests.pkgs.localeapp:locale', + 'pyramid.tests.pkgs.localeapp:locale2') + config.add_translation_dirs('pyramid.tests.pkgs.localeapp:locale3') self.assertEqual(config.registry.getUtility(ITranslationDirectories), [locale3, locale, locale2]) @@ -90,7 +90,7 @@ class TestI18NConfiguratorMixin(unittest.TestCase): config = self._makeOne(autocommit=True) manager.push({'request':request, 'registry':config.registry}) try: - config.add_translation_dirs('pyramid.tests.localeapp:locale') + config.add_translation_dirs('pyramid.tests.pkgs.localeapp:locale') translate = config.registry.getUtility(IChameleonTranslate) self.assertEqual(translate('Approve'), u'Approve') finally: diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index 6a3ab9391..a4a53bd3a 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -3507,4 +3507,3 @@ class DummyStaticURLInfo: def add(self, name, spec, **kw): self.added.append((name, spec, kw)) - diff --git a/pyramid/tests/test_i18n.py b/pyramid/tests/test_i18n.py index fcc41b08e..2abd35bdd 100644 --- a/pyramid/tests/test_i18n.py +++ b/pyramid/tests/test_i18n.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- # +import os + +here = os.path.dirname(__file__) +localedir = os.path.join(here, 'pkgs', 'localeapp', 'locale') import unittest from pyramid.testing import cleanUp @@ -176,10 +180,7 @@ class Test_make_localizer(unittest.TestCase): return make_localizer(locale, tdirs) def test_locale_from_mo(self): - import os from pyramid.i18n import Localizer - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') localedirs = [localedir] locale_name = 'de' result = self._callFUT(locale_name, localedirs) @@ -190,10 +191,7 @@ class Test_make_localizer(unittest.TestCase): self.assertTrue(hasattr(result, 'pluralize')) def test_locale_from_mo_bad_mo(self): - import os from pyramid.i18n import Localizer - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') localedirs = [localedir] locale_name = 'be' result = self._callFUT(locale_name, localedirs) @@ -202,10 +200,7 @@ class Test_make_localizer(unittest.TestCase): 'Approve') def test_locale_from_mo_mo_isdir(self): - import os from pyramid.i18n import Localizer - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') localedirs = [localedir] locale_name = 'gb' result = self._callFUT(locale_name, localedirs) @@ -214,10 +209,7 @@ class Test_make_localizer(unittest.TestCase): 'Approve') def test_territory_fallback(self): - import os from pyramid.i18n import Localizer - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') localedirs = [localedir] locale_name = 'de_DE' result = self._callFUT(locale_name, localedirs) @@ -270,13 +262,10 @@ class Test_get_localizer(unittest.TestCase): self.assertEqual(result, 'abc') def test_locale_from_mo(self): - import os from pyramid.threadlocal import get_current_registry from pyramid.interfaces import ITranslationDirectories from pyramid.i18n import Localizer registry = get_current_registry() - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') localedirs = [localedir] registry.registerUtility(localedirs, ITranslationDirectories) request = DummyRequest() @@ -289,13 +278,10 @@ class Test_get_localizer(unittest.TestCase): self.assertTrue(hasattr(result, 'pluralize')) def test_locale_from_mo_bad_mo(self): - import os from pyramid.threadlocal import get_current_registry from pyramid.interfaces import ITranslationDirectories from pyramid.i18n import Localizer registry = get_current_registry() - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') localedirs = [localedir] registry.registerUtility(localedirs, ITranslationDirectories) request = DummyRequest() @@ -367,36 +353,24 @@ class TestTranslations(unittest.TestCase): def test_load_locales_None(self): import gettext - import os - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') klass = self._getTargetClass() result = klass.load(localedir, None, domain=None) self.assertEqual(result.__class__, gettext.NullTranslations) def test_load_domain_None(self): import gettext - import os - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') locales = ['de', 'en'] klass = self._getTargetClass() result = klass.load(localedir, locales, domain=None) self.assertEqual(result.__class__, gettext.NullTranslations) def test_load_found_locale_and_domain(self): - import os - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') locales = ['de', 'en'] klass = self._getTargetClass() result = klass.load(localedir, locales, domain='deformsite') self.assertEqual(result.__class__, klass) def test_load_found_locale_and_domain_locale_is_string(self): - import os - here = os.path.dirname(__file__) - localedir = os.path.join(here, 'localeapp', 'locale') locales = 'de' klass = self._getTargetClass() result = klass.load(localedir, locales, domain='deformsite') diff --git a/pyramid/tests/test_integration.py b/pyramid/tests/test_integration.py index 230a0a411..239db58ba 100644 --- a/pyramid/tests/test_integration.py +++ b/pyramid/tests/test_integration.py @@ -138,7 +138,7 @@ class IntegrationBase(unittest.TestCase): self.config.end() class TestFixtureApp(IntegrationBase): - package = 'pyramid.tests.fixtureapp' + package = 'pyramid.tests.pkgs.fixtureapp' def test_another(self): res = self.testapp.get('/another.html', status=200) self.assertEqual(res.body, 'fixture') @@ -158,8 +158,8 @@ class TestFixtureApp(IntegrationBase): self.testapp.get('/protected.html', status=403) class TestStaticPermApp(IntegrationBase): - package = 'pyramid.tests.staticpermapp' - root_factory = 'pyramid.tests.staticpermapp:RootFactory' + package = 'pyramid.tests.pkgs.staticpermapp' + root_factory = 'pyramid.tests.pkgs.staticpermapp:RootFactory' def test_allowed(self): result = self.testapp.get('/allowed/index.html', status=200) self.assertEqual( @@ -191,7 +191,7 @@ class TestStaticPermApp(IntegrationBase): class TestCCBug(IntegrationBase): # "unordered" as reported in IRC by author of # http://labs.creativecommons.org/2010/01/13/cc-engine-and-web-non-frameworks/ - package = 'pyramid.tests.ccbugapp' + package = 'pyramid.tests.pkgs.ccbugapp' def test_rdf(self): res = self.testapp.get('/licenses/1/v1/rdf', status=200) self.assertEqual(res.body, 'rdf') @@ -204,7 +204,7 @@ class TestHybridApp(IntegrationBase): # make sure views registered for a route "win" over views registered # without one, even though the context of the non-route view may # be more specific than the route view. - package = 'pyramid.tests.hybridapp' + package = 'pyramid.tests.pkgs.hybridapp' def test_root(self): res = self.testapp.get('/', status=200) self.assertEqual(res.body, 'global') @@ -245,14 +245,14 @@ class TestHybridApp(IntegrationBase): class TestRestBugApp(IntegrationBase): # test bug reported by delijati 2010/2/3 (http://pastebin.com/d4cc15515) - package = 'pyramid.tests.restbugapp' + package = 'pyramid.tests.pkgs.restbugapp' def test_it(self): res = self.testapp.get('/pet', status=200) self.assertEqual(res.body, 'gotten') class TestForbiddenAppHasResult(IntegrationBase): # test that forbidden exception has ACLDenied result attached - package = 'pyramid.tests.forbiddenapp' + package = 'pyramid.tests.pkgs.forbiddenapp' def test_it(self): res = self.testapp.get('/x', status=403) message, result = [x.strip() for x in res.body.split('\n')] @@ -266,9 +266,11 @@ class TestForbiddenAppHasResult(IntegrationBase): result.endswith("for principals ['system.Everyone']")) class TestViewDecoratorApp(IntegrationBase): - package = 'pyramid.tests.viewdecoratorapp' + package = 'pyramid.tests.pkgs.viewdecoratorapp' def _configure_mako(self): - tmpldir = os.path.join(os.path.dirname(__file__), 'viewdecoratorapp', + tmpldir = os.path.join(os.path.dirname(__file__), + 'pkgs', + 'viewdecoratorapp', 'views') self.config.registry.settings['mako.directories'] = tmpldir @@ -286,7 +288,7 @@ class TestViewDecoratorApp(IntegrationBase): class TestViewPermissionBug(IntegrationBase): # view_execution_permitted bug as reported by Shane at http://lists.repoze.org/pipermail/repoze-dev/2010-October/003603.html - package = 'pyramid.tests.permbugapp' + package = 'pyramid.tests.pkgs.permbugapp' def test_test(self): res = self.testapp.get('/test', status=200) self.assertTrue('ACLDenied' in res.body) @@ -296,7 +298,7 @@ class TestViewPermissionBug(IntegrationBase): class TestDefaultViewPermissionBug(IntegrationBase): # default_view_permission bug as reported by Wiggy at http://lists.repoze.org/pipermail/repoze-dev/2010-October/003602.html - package = 'pyramid.tests.defpermbugapp' + package = 'pyramid.tests.pkgs.defpermbugapp' def test_x(self): res = self.testapp.get('/x', status=403) self.assertTrue('failed permission check' in res.body) @@ -309,12 +311,13 @@ class TestDefaultViewPermissionBug(IntegrationBase): res = self.testapp.get('/z', status=200) self.assertTrue('public' in res.body) -from pyramid.tests.exceptionviewapp.models import AnException, NotAnException +from pyramid.tests.pkgs.exceptionviewapp.models import \ + AnException, NotAnException excroot = {'anexception':AnException(), 'notanexception':NotAnException()} class TestExceptionViewsApp(IntegrationBase): - package = 'pyramid.tests.exceptionviewapp' + package = 'pyramid.tests.pkgs.exceptionviewapp' root_factory = lambda *arg: excroot def test_root(self): res = self.testapp.get('/', status=200) @@ -345,7 +348,7 @@ class TestExceptionViewsApp(IntegrationBase): self.assertTrue('whoa' in res.body) class TestConflictApp(unittest.TestCase): - package = 'pyramid.tests.conflictapp' + package = 'pyramid.tests.pkgs.conflictapp' def _makeConfig(self): from pyramid.config import Configurator config = Configurator() @@ -413,7 +416,7 @@ class ImperativeIncludeConfigurationTest(unittest.TestCase): def setUp(self): from pyramid.config import Configurator config = Configurator() - from pyramid.tests.includeapp1.root import configure + from pyramid.tests.pkgs.includeapp1.root import configure configure(config) app = config.make_wsgi_app() from webtest import TestApp @@ -457,7 +460,7 @@ class SelfScanAppTest(unittest.TestCase): class WSGIApp2AppTest(unittest.TestCase): def setUp(self): - from pyramid.tests.wsgiapp2app import main + from pyramid.tests.pkgs.wsgiapp2app import main config = main() app = config.make_wsgi_app() from webtest import TestApp @@ -473,7 +476,7 @@ class WSGIApp2AppTest(unittest.TestCase): if os.name != 'java': # uses chameleon class RendererScanAppTest(IntegrationBase): - package = 'pyramid.tests.rendererscanapp' + package = 'pyramid.tests.pkgs.rendererscanapp' def test_root(self): res = self.testapp.get('/one', status=200) self.assertTrue('One!' in res.body) @@ -483,7 +486,7 @@ if os.name != 'java': # uses chameleon self.assertTrue('Two!' in res.body) def test_rescan(self): - self.config.scan('pyramid.tests.rendererscanapp') + self.config.scan('pyramid.tests.pkgs.rendererscanapp') app = self.config.make_wsgi_app() from webtest import TestApp testapp = TestApp(app) diff --git a/pyramid/tests/viewdecoratorapp/__init__.py b/pyramid/tests/viewdecoratorapp/__init__.py deleted file mode 100644 index ad2890d92..000000000 --- a/pyramid/tests/viewdecoratorapp/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -def includeme(config): - config.scan('pyramid.tests.viewdecoratorapp') - |
