~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/tests/uploadpolicy.txt

  • Committer: Danilo Segan
  • Date: 2011-04-22 14:02:29 UTC
  • mto: This revision was merged to the branch mainline in revision 12910.
  • Revision ID: danilo@canonical.com-20110422140229-zhq4d4c2k8jpglhf
Ignore hidden files when building combined JS file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
  >>> buildd_policy.setDistroSeriesAndPocket("hoary")
72
72
  >>> print buildd_policy.distroseries.name
73
73
  hoary
 
74
  >>> print buildd_policy.announcelist
 
75
  hoary-changes@ubuntu.com
74
76
 
75
77
Policies can make decisions based on whether or not they want to
76
78
approve an upload automatically (I.E. move it straight to ACCEPTED
102
104
 
103
105
  >>> login('foo.bar@canonical.com')
104
106
  >>> hoary.status = SeriesStatus.FROZEN
105
 
  >>> from lp.services.database.sqlbase import flush_database_updates
 
107
  >>> from canonical.database.sqlbase import flush_database_updates
106
108
  >>> flush_database_updates()
107
109
 
108
110
  >>> insecure_policy.autoApprove(FakeUpload())