~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/testing/layers.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-26 04:36:33 UTC
  • mfrom: (14022.4.6 dbconfig-section-doom)
  • Revision ID: launchpad@pqm.canonical.com-20110926043633-bqcr5e4eeev57o5s
[r=lifeless][no-qa] Drop DatabaseConfig's obsolete section selection
        support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1452
1452
    def testTearDown(cls):
1453
1453
        disconnect_stores()
1454
1454
 
1455
 
    @classmethod
1456
 
    @profiled
1457
 
    def switchDbConfig(cls, database_config_section):
1458
 
        reconnect_stores(database_config_section=database_config_section)
1459
 
 
1460
1455
 
1461
1456
class LaunchpadScriptLayer(ZopelessLayer, LaunchpadLayer):
1462
1457
    """Testing layer for scripts using the main Launchpad database adapter"""
1490
1485
    def testTearDown(cls):
1491
1486
        disconnect_stores()
1492
1487
 
1493
 
    @classmethod
1494
 
    @profiled
1495
 
    def switchDbConfig(cls, database_config_section):
1496
 
        reconnect_stores(database_config_section=database_config_section)
1497
 
 
1498
1488
 
1499
1489
class LaunchpadTestSetup(PgTestSetup):
1500
1490
    template = 'launchpad_ftest_template'