[Checkins] SVN: Sandbox/faassen/zope.site/trunk/ remove a lot of text fixture cruft.
Martijn Faassen
faassen at infrae.com
Tue Jan 27 10:51:17 EST 2009
Log message for revision 95221:
remove a lot of text fixture cruft.
Changed:
U Sandbox/faassen/zope.site/trunk/buildout.cfg
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/adapter.py
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/components.py
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/exampleclass.py
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/factory.py
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/gen3.fs
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/module.py
D Sandbox/faassen/zope.site/trunk/src/zope/site/tests/views.py
-=-
Modified: Sandbox/faassen/zope.site/trunk/buildout.cfg
===================================================================
--- Sandbox/faassen/zope.site/trunk/buildout.cfg 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/buildout.cfg 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,5 +1,5 @@
[buildout]
-develop = . zope.app.component
+develop = .
parts = test coverage-test coverage-report
[test]
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/adapter.py
===================================================================
--- Sandbox/faassen/zope.site/trunk/src/zope/site/tests/adapter.py 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/src/zope/site/tests/adapter.py 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,63 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Sample adapter class for testing
-
-$Id$
-"""
-import zope.interface
-import zope.component
-from zope.site.tests import components
-
-class I1(zope.interface.Interface):
- pass
-
-class I2(zope.interface.Interface):
- pass
-
-class I3(zope.interface.Interface):
- def f1(): pass
- def f2(): pass
- def f3(): pass
-
-class IS(zope.interface.Interface):
- pass
-
-
-class Adapter(object):
- def __init__(self, *args):
- self.context = args
-
-class A1(Adapter):
- zope.interface.implements(I1)
-
-class A2(Adapter):
- zope.interface.implements(I2)
-
-class A3(Adapter):
- zope.component.adapts(components.IContent, I1, I2)
- zope.interface.implements(I3)
-
-class A4:
- pass
-
-a4 = A4()
-
-class A5:
- zope.interface.implements(I1, I2)
-
-a5 = A5()
-
-def Handler(content, *args):
- # uninteresting handler
- content.args = getattr(content, 'args', ()) + (args, )
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/components.py
===================================================================
--- Sandbox/faassen/zope.site/trunk/src/zope/site/tests/components.py 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/src/zope/site/tests/components.py 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,44 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Components for testing
-
-$Id$
-"""
-from zope.interface import Interface, Attribute, implements
-from zope.component import adapts
-
-class IAppb(Interface):
- a = Attribute('test attribute')
- def f(): "test func"
-
-class IApp(IAppb):
- pass
-
-class IContent(Interface): pass
-
-class Content(object):
- implements(IContent)
-
-class Comp(object):
- adapts(IContent)
- implements(IApp)
-
- def __init__(self, *args):
- # Ignore arguments passed to constructor
- pass
-
- a = 1
- def f(): pass
-
-comp = Comp()
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/exampleclass.py
===================================================================
--- Sandbox/faassen/zope.site/trunk/src/zope/site/tests/exampleclass.py 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/src/zope/site/tests/exampleclass.py 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,30 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2003 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Example test classes
-
-$Id$
-"""
-from zope.interface import Interface
-
-class ExampleClass(object):
- pass
-
-class IExample(Interface):
- pass
-
-class IExample2(Interface):
- pass
-
-class IExampleContainer(Interface):
- pass
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/factory.py
===================================================================
--- Sandbox/faassen/zope.site/trunk/src/zope/site/tests/factory.py 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/src/zope/site/tests/factory.py 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,44 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Factory tests.
-
-$Id$
-"""
-from zope.component.interfaces import IFactory
-from zope.interface import Interface, implements, implementedBy
-
-class IX(Interface):
- """the dummy interface which class X supposedly implements,
- according to the factory"""
-
-class IFoo(Interface):
- """an even more dummy interface just for testing """
-
-class X(object):
- implements(IX)
- def __init__(self, *args, **kwargs):
- self.args=args
- self.kwargs=kwargs
-
-
-class ClassFactoryWrapper(object):
- implements(IFactory)
- def __init__(self, klass):
- self.__klass=klass
- def __call__(self, *args, **kwargs):
- return self.__klass(*args, **kwargs)
- def getInterfaces(self):
- return implementedBy(self.__klass)
-
-f=ClassFactoryWrapper(X)
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/gen3.fs
===================================================================
(Binary files differ)
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/module.py
===================================================================
--- Sandbox/faassen/zope.site/trunk/src/zope/site/tests/module.py 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/src/zope/site/tests/module.py 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,58 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Preliminaries to hookup a test suite with the external TestModule.
-
-This is necessary because the test framework interferes with seeing changes in
-the running modules via the module namespace. This enables having some
-subject classes, instances, permissions, etc, that don't live in the test
-modules, themselves.
-
-$Id$
-"""
-from zope.interface import Interface
-from zope.schema import Text
-
-class I(Interface):
- def m1():
- pass
- def m2():
- pass
-
-class I2(I):
- def m4():
- pass
-
-class I3(Interface):
- def m3():
- pass
-
-class I4(Interface):
- def m2():
- pass
-
-
-class S(Interface):
- foo = Text()
- bar = Text()
- baro = Text(readonly=True)
-
-class S2(Interface):
- foo2 = Text()
- bar2 = Text()
-
-
-template_bracket = """<configure
- xmlns="http://namespaces.zope.org/zope">
- %s
-</configure>"""
Deleted: Sandbox/faassen/zope.site/trunk/src/zope/site/tests/views.py
===================================================================
--- Sandbox/faassen/zope.site/trunk/src/zope/site/tests/views.py 2009-01-27 15:45:34 UTC (rev 95220)
+++ Sandbox/faassen/zope.site/trunk/src/zope/site/tests/views.py 2009-01-27 15:51:17 UTC (rev 95221)
@@ -1,65 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Views test.
-
-$Id$
-"""
-from zope.interface import Interface, implements, directlyProvides
-
-class Request(object):
-
- def __init__(self, type):
- directlyProvides(self, type)
-
-class IR(Interface):
- pass
-
-class IV(Interface):
- def index():
- pass
-
-class IC(Interface): pass
-
-class V1(object):
- implements(IV)
-
- def __init__(self, context, request):
- self.context = context
- self.request = request
-
- def index(self):
- return 'V1 here'
-
- def action(self):
- return 'done'
-
-class VZMI(V1):
- def index(self):
- return 'ZMI here'
-
-class R1(object):
-
- def index(self):
- return 'R1 here'
-
- def action(self):
- return 'R done'
-
- def __init__(self, request):
- pass
-
- implements(IV)
-
-class RZMI(R1):
- pass
More information about the Checkins
mailing list