functional tests broken in Grok 1.2.1

Bug #692455 reported by Ben Caddis
This bug report is a duplicate of:  Bug #677401: test documentation bug. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grok
New
Undecided
Unassigned

Bug Description

It seems that either functional tests work in a new, undocumented fashion, or functional test support is broken. I am using Grok 1.2.1 with Python 2.6.1.

This bug does not seem to be related to Bug #677401. I am not having problems with z3c.testsetup.register_all_tests(). That utility finds my test modules without any problems. Unit tests also work as expected.

However, when I try to use a functional test in the same manner described here:
http://grok.zope.org/doc/current/reference/testing.html#functional-test-layer
(exact same code, just replaced the project name) ...I get output like this:

-----
...
File "/home/.../.../GrokTest/src/groktest/test_app_functional.py", line 9, in <module>
    from groktest.testing import FunctionalLayer
ZopeXMLConfigurationError: File "/home/.../.../GrokTest/src/groktest/ftesting.zcml", line 7.2-7.32
    ZopeXMLConfigurationError: File "/home/.../.../GrokTest/src/groktest/configure.zcml", line 5.2-5.27
    ImportError: No module named testing

Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
.
  Ran 1 tests with 0 failures and 0 errors in 0.000 seconds.
Tearing down left over layers:
  Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.

Tests with errors:
   Layer: <zope.app.wsgi.testlayer.BrowserLayer object at 0xb74db74c>
Total: 1 tests, 0 failures, 1 errors in 0.785 seconds.
-----

Revision history for this message
Ben Caddis (nebuloustwo) wrote :

The scope of the discussion in Bug #677401 has grown to include the issue described here. Therefore I'll mark this one as a duplicate to minimize confusion.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.