~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/test_distroseries.py

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    removeSecurityProxy,
36
36
    )
37
37
 
38
 
from canonical.config import (
39
 
    config,
40
 
    dbconfig,
41
 
    )
 
38
from canonical.config import config
42
39
from canonical.database.constants import UTC_NOW
43
40
from canonical.database.sqlbase import flush_database_caches
44
41
from canonical.launchpad.testing.pages import (
609
606
        # error_description on the given job. Which is a PITA.
610
607
        distroseries = job.distroseries
611
608
        transaction.commit()
612
 
        starting_database_config_section = dbconfig.getSectionName()
613
609
        reconnect_stores("initializedistroseries")
614
610
        job = self.job_source.get(distroseries)
615
611
        job.start()
616
612
        job.fail()
617
613
        job.notifyUserError(error)
618
614
        transaction.commit()
619
 
        reconnect_stores(starting_database_config_section)
 
615
        reconnect_stores('launchpad')
620
616
 
621
617
    def test_initialization_failure_explanation_shown(self):
622
618
        # When initialization has failed an explanation of the failure can be