Re: Porting tests to plone.app.testing and removal of legacy packages

Timo Stollenwerk <tisto-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Am 28.01.15 um 18:33 schrieb Jens W. Klein:
> The problem is plone.app.testing.bbb load ATCT profile in setUp
>
> 	testing.applyProfile(portal, 'Products.ATContentTypes:content')
>
> https://github.com/plone/plone.app.testing/blob/master/plone/app/testing/bbb.py#L42
>
> i suppose it silently ignoed if ATCT is not there, but thats not the
> case in the Archetypes test case.
>
> When running
>
> 	./bin/alltests-at --group=CMFEditions
>
> This results in a
> 	
> 	ValueError: undefined property 'content_meta_type'

This means there is a test isolation problem in either 
Products.CMFDiffTool or Products.CMFEditions. Those are the only 
packages in that group. You can see the same results when running:

   $ bin/test -s Products.CMFDiffTool -s Products.CMFEditions

> Because for some reson priot to the ATCT profile the pa.ct. profile was
> loaded and so a AT/old school FTI defintion want to be loaded on an
> existing DexterityFTI. Which as it seems does not have such a property
> any more.
>
> I think here we have two problems. One is the dup loading of the FTIs.
> Second is the very bad error messages and checks inside GenericSetup
> which makes it horrible difficult to debug what happens here.
>
> Any ideas how to fix this?

I saw this error before, when trying to move packages between the 
alltests groups. It would be awesome if we could figure out what causes 
this, because it would solve other problems as well.

Though, we can always run the packages in full isolation. This is 
something we do for a few packages, even though I'm constantly trying to 
get rid of those.

@jensens: we are almost there. Putting my criticism about the process 
aside: Thanks for your work! :)

Timo

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.