Last change
on this file since 1957 was
1957,
checked in by mylan, 14 years ago
|
#172: move tests module into tests package. Split into testInstall and testWidget. Add testing test_captcha skin layer with captcha test form
|
-
Property svn:eol-style set to
native
|
File size:
854 bytes
|
Line | |
---|
1 | import unittest |
---|
2 | import os |
---|
3 | import sys |
---|
4 | import re |
---|
5 | |
---|
6 | from Products.Five import zcml |
---|
7 | from Products.Five import fiveconfigure |
---|
8 | |
---|
9 | from Testing import ZopeTestCase as ztc |
---|
10 | from Products.PloneTestCase.layer import onsetup |
---|
11 | from Products.PloneTestCase import PloneTestCase as ptc |
---|
12 | from Products.PloneTestCase.PloneTestCase import portal_owner |
---|
13 | from Products.PloneTestCase.PloneTestCase import default_password |
---|
14 | |
---|
15 | from Products.CMFCore.utils import getToolByName |
---|
16 | |
---|
17 | from quintagroup.captcha.core.config import * |
---|
18 | from quintagroup.captcha.core.utils import getWord, decrypt, parseKey |
---|
19 | |
---|
20 | @onsetup |
---|
21 | def setup_product(): |
---|
22 | fiveconfigure.debug_mode = True |
---|
23 | import quintagroup.captcha.core |
---|
24 | zcml.load_config('configure.zcml', quintagroup.captcha.core) |
---|
25 | fiveconfigure.debug_mode = False |
---|
26 | ztc.installPackage('quintagroup.captcha.core') |
---|
27 | |
---|
28 | setup_product() |
---|
29 | ptc.setupPloneSite() |
---|
Note: See
TracBrowser
for help on using the repository browser.