~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/librarian/tests/test_client.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-30 10:09:30 UTC
  • mfrom: (14606.2.8 apocalibrarian)
  • Revision ID: launchpad@pqm.canonical.com-20111230100930-kp3e0l6wakissewm
[r=wgrant][no-qa] Move canonical.librarian to
        lp.services.librarian(server).

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
import transaction
13
13
 
 
14
from canonical.database.sqlbase import block_implicit_flushes
14
15
from lp.services.config import config
15
 
from canonical.database.sqlbase import block_implicit_flushes
16
 
from lp.services.webapp.dbpolicy import SlaveDatabasePolicy
17
 
from canonical.librarian import client as client_module
18
 
from canonical.librarian.client import (
 
16
from lp.services.database.lpstorm import ISlaveStore
 
17
from lp.services.librarian import client as client_module
 
18
from lp.services.librarian.client import (
19
19
    LibrarianClient,
20
20
    LibrarianServerError,
21
21
    RestrictedLibrarianClient,
22
22
    )
23
 
from canonical.librarian.interfaces import UploadFailed
 
23
from lp.services.librarian.interfaces.client import UploadFailed
 
24
from lp.services.librarian.model import LibraryFileAlias
 
25
from lp.services.webapp.dbpolicy import SlaveDatabasePolicy
24
26
from lp.testing.layers import (
25
27
    DatabaseLayer,
26
28
    LaunchpadFunctionalLayer,
27
29
    )
28
 
from lp.services.database.lpstorm import ISlaveStore
29
 
from lp.services.librarian.model import LibraryFileAlias
30
30
 
31
31
 
32
32
class InstrumentedLibrarianClient(LibrarianClient):