~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/doc/soyuz-set-of-uploads.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-29 05:29:36 UTC
  • mto: This revision was merged to the branch mainline in revision 14606.
  • Revision ID: curtis.hovey@canonical.com-20111229052936-c261pibg1p6ze6m4
Moved canonical.config to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
 
102
102
Add disk content for file inherited from ubuntu/breezy-autotest:
103
103
 
104
 
    >>> from lp.services.librarianserver.testing.server import fillLibrarianFile
 
104
    >>> from canonical.librarian.testing.server import fillLibrarianFile
105
105
    >>> fillLibrarianFile(54)
106
106
 
107
107
Now that the infrastructure is ready, we prepare a set of useful methods.
198
198
    ...     SourcePackagePublishingHistory as SPPH,
199
199
    ...     BinaryPackagePublishingHistory as BPPH)
200
200
    >>> from lp.soyuz.enums import PackagePublishingStatus as PPS
201
 
    >>> from lp.services.database.constants import UTC_NOW
 
201
    >>> from canonical.database.constants import UTC_NOW
202
202
    >>> def simple_publish(distro):
203
203
    ...     srcs_to_publish = SPPH.select("""
204
204
    ...         SourcePackagePublishingHistory.distroseries = DistroSeries.id
645
645
 
646
646
Should still just have one build, and it should now be FULLYBUILT.
647
647
 
648
 
    >>> from lp.services.database.sqlbase import clear_current_connection_cache
 
648
    >>> from canonical.database.sqlbase import clear_current_connection_cache
649
649
    >>> clear_current_connection_cache()
650
650
 
651
651
    >>> builds = list(BinaryPackageBuild.selectBy(