| @@ 82-91 (lines=10) @@ | ||
| 79 | def dummy_bijlage(self): |
|
| 80 | return None |
|
| 81 | ||
| 82 | ||
| 83 | @audit_with_request(actie='bijlage blijven bewerken') |
|
| 84 | def dummy_bijlage_with_request(request): |
|
| 85 | return None |
|
| 86 | ||
| 87 | ||
| 88 | class AuditTests(unittest.TestCase): |
|
| 89 | ||
| 90 | @classmethod |
|
| 91 | def setUpClass(cls): |
|
| 92 | config = configparser.ConfigParser() |
|
| 93 | config.read(os.path.join(os.path.dirname(__file__), 'test.ini')) |
|
| 94 | settings = config.items('app:oe_utils') |
|
| @@ 29-38 (lines=10) @@ | ||
| 26 | ||
| 27 | ||
| 28 | class DataManagerTest(unittest.TestCase): |
|
| 29 | @classmethod |
|
| 30 | def setUpClass(cls): |
|
| 31 | config = configparser.ConfigParser() |
|
| 32 | config.read(os.path.join(os.path.dirname(__file__), 'test.ini')) |
|
| 33 | settings = config.items('app:oe_utils') |
|
| 34 | settings = dict((s[0], s[1]) for s in settings) |
|
| 35 | cls.engine = engine_from_config(settings, prefix='sqlalchemy.') |
|
| 36 | cls.session_maker = sessionmaker( |
|
| 37 | bind=cls.engine, |
|
| 38 | extension=ZopeTransactionExtension() |
|
| 39 | ) |
|
| 40 | ||
| 41 | def setUp(self): |
|