Part of lp.archiveuploader.tests
Function | getUploadForSource | Return a NascentUpload object for a source. |
Function | getPPAUploadForSource | Return a NascentUpload object for a PPA source. |
Function | getUploadForBinary | Return a NascentUpload object for binaries. |
Function | testGlobalsSetup | Inject useful helper functions in tests globals. |
Function | prepareHoaryForUploads | Prepare ubuntu/hoary to receive uploads. |
Function | setUp | Setup a typical nascentupload test environment. |
Function | tearDown | Undocumented |
Function | test_suite | Undocumented |
We can use the getUpload* without unnecessary imports.
Ensure ubuntu/hoary is ready to receive and build new uploads in the RELEASE pocket (they are auto-overridden to the 'universe' component).
Use 'uploader' datebase user in a LaunchpadZopelessLayer transaction. Log in as a Launchpad admin (foo.bar@canonical.com). Setup test globals and prepare hoary for uploads