~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_registration.py

  • Committer: Martin Pool
  • Date: 2006-05-16 02:31:06 UTC
  • mto: (1704.2.17 bzr.mbp.integration)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: mbp@sourcefrog.net-20060516023106-ad3248d716e61d31
(launchpad plugin) Improved --dry-run that uses a dummy xmlrpc service.

Add a test using this that we get reasonable output.

Clearer message when registration succeeds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        return service.send_request(self._methodname, self._request_params())
141
141
 
142
142
 
 
143
class DryRunLaunchpadService(LaunchpadService):
 
144
    """Service that just absorbs requests without sending to server.
 
145
    
 
146
    The dummy service does not need authentication.
 
147
    """
 
148
 
 
149
    def send_request(self, method_name, method_params):
 
150
        pass
 
151
 
 
152
    def gather_user_credentials(self):
 
153
        pass
 
154
 
 
155
 
143
156
class BranchRegistrationRequest(BaseRequest):
144
157
    """Request to tell Launchpad about a bzr branch."""
145
158