~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2011-11-21 04:59:55 UTC
  • mto: (14186.7.1 observer-merging)
  • mto: This revision was merged to the branch mainline in revision 14349.
  • Revision ID: william.grant@canonical.com-20111121045955-3suh04w0gutm9bql
less override, more reset

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
    """
224
224
    disconnect_stores()
225
225
    if reset:
226
 
        dbconfig.override(
227
 
            dbuser=config.launchpad.dbuser, isolation_level=None)
 
226
        dbconfig.reset()
228
227
 
229
228
    main_store = getUtility(IStoreSelector).get(MAIN_STORE, DEFAULT_FLAVOR)
230
229
    assert main_store is not None, 'Failed to reconnect'