Part of canonical.testing.layers View In Hierarchy
Known subclasses: canonical.testing.layers.LaunchpadFunctionalLayer, canonical.testing.layers.LaunchpadScriptLayer
We need to ensure that the database setup runs before the daemon setup, or the database setup will fail because the daemons are already connected to the database.
This layer is mainly used by tests that call initZopeless() themselves. Most tests will use a sublayer such as LaunchpadFunctionalLayer that provides access to the Component Architecture.
| Class Method | setUp | Undocumented |
| Class Method | tearDown | Undocumented |
| Class Method | testSetUp | Undocumented |
| Class Method | testTearDown | Undocumented |
| Class Method | resetSessionDb | Reset the session database. |
Inherited from DatabaseLayer:
| Class Method | installMockDb | Undocumented |
| Class Method | uninstallMockDb | Undocumented |
| Class Method | force_dirty_database | Undocumented |
| Class Method | connect | Undocumented |
| Class Method | _dropDb | Undocumented |
Inherited from BaseLayer (via DatabaseLayer):
| Class Method | check | Check that the environment is working as expected. |
| Class Method | flagTestIsolationFailure | Handle a breakdown in test isolation. |
| Class Method | getCurrentTestResult | Return the TestResult currently in play. |
| Class Method | getCurrentTestCase | Return the test currently in play. |
Inherited from LibrarianLayer:
| Class Method | hide | Hide the Librarian so nothing can find it. We don't want to |
| Class Method | reveal | Reveal a hidden Librarian. |
| Class Method | _check_and_reset | Raise an exception if the Librarian has been killed. |
Inherited from BaseLayer (via LibrarianLayer):
| Class Method | check | Check that the environment is working as expected. |
| Class Method | flagTestIsolationFailure | Handle a breakdown in test isolation. |
| Class Method | getCurrentTestResult | Return the TestResult currently in play. |
| Class Method | getCurrentTestCase | Return the test currently in play. |
Inherited from MemcachedLayer:
| Class Method | getPidFile | Undocumented |
| Class Method | purge | Purge everything from our memcached. |
Inherited from BaseLayer (via MemcachedLayer):
| Class Method | check | Check that the environment is working as expected. |
| Class Method | flagTestIsolationFailure | Handle a breakdown in test isolation. |
| Class Method | getCurrentTestResult | Return the TestResult currently in play. |
| Class Method | getCurrentTestCase | Return the test currently in play. |