On Sun, Mar 27, 2011 at 10:54 AM, Uli Fouquet u...@gnufix.de wrote:
- `assert` works like you would expect it to work in tests. No need
to use `self.assertEqual()`` and friends (but you can if you prefer).
How do they deal with the fact that assert statements are dropped when
Python is run
Hi there,
Benji York wrote:
On Sun, Mar 27, 2011 at 10:54 AM, Uli Fouquet u...@gnufix.de wrote:
- `assert` works like you would expect it to work in tests. No need
to use `self.assertEqual()`` and friends (but you can if you prefer).
How do they deal with the fact that assert statements
On Sun, Mar 27, 2011 at 11:13 AM, Martin Aspeli
optilude+li...@gmail.com wrote:
Hi,
On 27 March 2011 15:54, Uli Fouquet u...@gnufix.de wrote:
The (limited) experiences with py.test, however, were awesome. Some
points that are quite cool IMHO:
- Easy finding of tests: just write some
On Mon, Mar 28, 2011 at 9:33 AM, Uli Fouquet u...@gnufix.de wrote:
Hi there,
Benji York wrote:
On Sun, Mar 27, 2011 at 10:54 AM, Uli Fouquet u...@gnufix.de wrote:
- `assert` works like you would expect it to work in tests. No need
to use `self.assertEqual()`` and friends (but you can if
Hi there,
I first would like to thank everybody very much for the interesting and
elaborated answers to my last questions! I learned a lot about
registries and think that for now `plone.testing` (which in fact we
hadn't had on the screen) will help to solve some of the most urgent
issues we have
Hi,
On 27 March 2011 15:54, Uli Fouquet u...@gnufix.de wrote:
The (limited) experiences with py.test, however, were awesome. Some
points that are quite cool IMHO:
- Easy finding of tests: just write some ``test_function`` in a
``test_module`` and it will be found and executed. That also
Hi Jim,
On 25 March 2011 14:12, Jim Fulton j...@zope.com wrote:
Agree. There is a problem in that provideAdapter() and friends don't
use getSiteManager() - the always use the global site manager. And
there are parts of zope.component that use module level variables
directly, ignoring hooks.
be performed once for each layer
Compared to Zope test layers I came to the conclusion that there is not
much like this concept already in `pytest` and the behaviour of test
layers can not easily be faked.
I fully agree, the test layer concept of zope.testrunner provides some
very nice
Hi,
On 26 March 2011 14:18, Wolfgang Schnerring w...@gocept.com wrote:
Because, while test layers are nice because they have the above
properties, I'm not too happy with the current implementation, namely
the use (or is it abuse? ;-) of __bases__ and __name__, which leads
very naturally to
Hello Uli,
I've spent quite some time thinking (and partly coding) about the same
issues you mention (but didn't feel ready to talk about it here, yet),
so I'm glad that maybe we can start thinking about them together
I think your email addresses two quite different topics, so I'll split
my
On Fri, Mar 25, 2011 at 4:24 AM, Wolfgang Schnerring w...@gocept.com wrote:
Hello Uli,
I've spent quite some time thinking (and partly coding) about the same
issues you mention (but didn't feel ready to talk about it here, yet),
so I'm glad that maybe we can start thinking about them together
Hi,
On 25 March 2011 13:17, Jim Fulton j...@zope.com wrote:
On Fri, Mar 25, 2011 at 4:24 AM, Wolfgang Schnerring w...@gocept.com wrote:
Hello Uli,
I've spent quite some time thinking (and partly coding) about the same
issues you mention (but didn't feel ready to talk about it here, yet),
so
On Fri, Mar 25, 2011 at 9:58 AM, Martin Aspeli optilude+li...@gmail.com wrote:
On 25 March 2011 13:17, Jim Fulton j...@zope.com wrote:
On Fri, Mar 25, 2011 at 4:24 AM, Wolfgang Schnerring w...@gocept.com wrote:
...
2. zope.component has two entry points, the global site registry and
the
Hi.
Disclaimer: I don't know anything about pytest.
On Thu, Mar 24, 2011 at 1:05 AM, Uli Fouquet u...@gnufix.de wrote:
Are there cheap/fast ways to cache/restore registry setups we hadn't had
on the screen? Really fast setups/cache-restores could make even
function-wise registrations a
Hi there,
[extensive introduction by Uli of zope.pytest]
Thanks Uli for that introduction to the package and its problems!
I've been using zope.pytest within 2 Grok projects so far to test
through webob some JSON webservices, and it's worked well for me. I
hadn't had to deal with the issue of
to make registrations step by step, while easily
throwing away the latest registrations when they are not needed anymore.
plone.testing does not depend on Zope2 even if it comes with support for
building Zope2 layers.
Le 24/03/11 01:05, Uli Fouquet a écrit :
Compared to Zope test layers I came
want a
fresh registry, just put your tests inside a new test module.
With Zope test layers there might be a similar problem (each layer can
create a global ZCA configuration that then will be shared amongst all
applied test methods) but I think people are used to it and can cope
with that specific
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Quick test, please ignore
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkv/WJkACgkQRAx5nvEhZLJ4oACgm3AmtfWAwvrhVvB83AxcbHfJ
EdkAoLTWC5DeBS3xsls8FTCPU5UEZIgu
=q806
-END PGP SIGNATURE-
I haven't received any mail from zope.org in quite while...
--
http://www.slinkp.com
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
On Thu, Apr 06, 2006 at 06:04:11PM -0400, Tres Seaver wrote:
+1 for getting rid of *anything* in Testing which does something as
Utterly Evil (tm) as scribbling on 'os.environ'.
Any tests which break on that account should be fixed, not covered over.
You don't risk breaking production code,
On Fri, Apr 07, 2006 at 10:04:36AM -0400, Paul Winkler wrote:
I may try eradicating os.environ usage from Testing on my trunk
sandbox and see what else breaks...
Answer: nothing. Committed on the trunk.
I did a bit of grepping around too. There are a few tests
that twiddle os.environ, but
On Fri, Apr 07, 2006 at 12:52:29PM -0400, Paul Winkler wrote:
On Fri, Apr 07, 2006 at 10:04:36AM -0400, Paul Winkler wrote:
I may try eradicating os.environ usage from Testing on my trunk
sandbox and see what else breaks...
Answer: nothing. Committed on the trunk.
To clarify, I just
[We seem to have lost Steve Alexander's test summarizer. I will
contact him in a separate mail.]
The switch to Python 2.3.4 caused tests for Zope 2.7 and 2.8 to
experience a funny problem with the logging module. Anybody want to
take a guess what's up here? I know these are not a truly
On Thu, Apr 06, 2006 at 10:45:11AM +0200, Stefan H. Holek wrote:
The VHM tests in Zope 2.9 and trunk broke last night:
http://mail.zope.org/pipermail/zope-tests/2006-April/004648.html
http://mail.zope.org/pipermail/zope-tests/2006-April/004649.html
I'm assuming this was me, but I ran test.py
--On 6. April 2006 12:06:25 -0400 Paul Winkler [EMAIL PROTECTED] wrote:
On Thu, Apr 06, 2006 at 10:45:11AM +0200, Stefan H. Holek wrote:
The VHM tests in Zope 2.9 and trunk broke last night:
http://mail.zope.org/pipermail/zope-tests/2006-April/004648.html
On Thu, Apr 06, 2006 at 12:06:25PM -0400, Paul Winkler wrote:
On Thu, Apr 06, 2006 at 10:45:11AM +0200, Stefan H. Holek wrote:
The VHM tests in Zope 2.9 and trunk broke last night:
http://mail.zope.org/pipermail/zope-tests/2006-April/004648.html
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul Winkler wrote:
On Thu, Apr 06, 2006 at 12:06:25PM -0400, Paul Winkler wrote:
On Thu, Apr 06, 2006 at 10:45:11AM +0200, Stefan H. Holek wrote:
The VHM tests in Zope 2.9 and trunk broke last night:
Many thanks Dieter, works a treat.
I'm working through the python tutorial now.
-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 18:58
To: [EMAIL PROTECTED]
Cc: zope@zope.org
Subject: Re: [Fwd: Re: [Zope] test for the existence of a nodeValue]
Jon
Thanks Dieter,
But I still cant get it to work. I've changed my get_attributes.py script
to this:
if not attobject:
return ''
version = attobject.get_viewable()
nodes = version.content.documentElement.getElementsByTagName(attname) if
not nodes:
return ''
nodeValue =
Jon Bowlas wrote at 2005-8-4 10:31 +0100:
...
But I still cant get it to work. I've changed my get_attributes.py script
to this:
if not attobject:
return ''
version = attobject.get_viewable()
nodes = version.content.documentElement.getElementsByTagName(attname) if
not nodes:
return ''
Jon Bowlas wrote at 2005-8-2 19:08 +0100:
...
I'm pretty new to python and zope but would like to know how I can adapt
this script below to test to see if nodeValue actually contains a value and
if it doesn't then I would like to return a default value I can check for
using my zpt that references
Hi All,
Im pretty new to python and zope but would like to
know how I can adapt this script below to test to see if nodeValue actually contains
a value and if it doesnt then I would like to return a default value I
can check for using my zpt that references this script:
if not
test
--
- Matthew Burleigh
- Systems Administrator, Digital Creations - publishers of Zope.
- (888)344-4332 -- http://www.digicool.com - http://www.zope.org
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
test
--
- Matthew Burleigh
- Systems Administrator, Digital Creations - publishers of Zope.
- (888)344-4332 -- http://www.digicool.com - http://www.zope.org
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
test
--
- Matthew Burleigh
- Systems Administrator, Digital Creations - publishers of Zope.
- (888)344-4332 -- http://www.digicool.com - http://www.zope.org
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
???
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
Max Møller Rasmussen wrote:
???
Hm, the list seems to be up, but not so zope.org ...
I've bee trying now for about 4 hours or so ...
regards,
ta
--
smartferret it-consulting Dipl.-Ing. Linzbichler KEG
test
--
Matt Burleigh
Systems Administrator, Digital Creations - publishers of Zope.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
ignore this
--
- Matthew Burleigh
- Systems Administrator, Digital Creations - publishers of Zope.
- (888)344-4332 -- http://www.digicool.com - http://www.zope.org
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
ignore
--
- Matthew Burleigh
- Systems Administrator, Digital Creations - publishers of Zope.
- (888)344-4332 -- http://www.digicool.com - http://www.zope.org
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
test, please ignore
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
just a test, Sorry!
Jack Morgan Debian GNU/Linux Enthusiast
[EMAIL PROTECTED] http://www.mandinka.org
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross
if it is dead of just everybody went on vacations? :)
Vitaly.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
On Wed, 31 May 2000, Vitaly Osipov wrote:
if it is dead of just everybody went on vacations? :)
We are here, sure!
(Russian?)
Oleg.(All opinions are mine and not of my employer)
Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED]
if it is dead of just everybody went on vacations? :)
:-)
I think the list had some downtime for assorted reasons. Looks like it's
back up again now... though if you don't read this then it's back down
again ;-)
John
--
John Chandler / Software Developer / New Information Paradigms Ltd
ignore please
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
47 matches
Mail list logo