+ def test_sync_project_milestones(self):
+ """
+ Test milestone syncing does not abort with bad milestone objects.
+ """
+
+ def test_sync_project_milestones_handles_bad_milestone(self):
+ """
+ Test milestone syncing does not abort with bad milestone objects.
+ """
Something's not quite right, they both have the same docstring ;-)
#2
I appreciate that this is a hangover from the previous implementation...but...
the bare except should be fixed with something a bit more appropriate...
#3
I'd like to see a test with a successful run of the script...that doesn't have to hit Launchpad, but there should be a test with sync_milestones returning something other than None
#1
+ def test_sync_ project_ milestones( self): project_ milestones_ handles_ bad_milestone( self):
+ """
+ Test milestone syncing does not abort with bad milestone objects.
+ """
+
+ def test_sync_
+ """
+ Test milestone syncing does not abort with bad milestone objects.
+ """
Something's not quite right, they both have the same docstring ;-)
#2
I appreciate that this is a hangover from the previous implementation. ..but.. .
+ try: load(open( config. get("master" , "launchpad_ oauth") )) credentials, LPNET_SERVICE_ROOT) get_token_ and_login( credentials. save( get("master" , "launchpad_oauth"), "w"))
+ credentials.
+ launchpad = Launchpad(
+ except:
+ launchpad = Launchpad.
+ 'Offspring Image Build System', LPNET_SERVICE_ROOT, cachedir)
+ launchpad.
+ file(config.
the bare except should be fixed with something a bit more appropriate...
#3
I'd like to see a test with a successful run of the script...that doesn't have to hit Launchpad, but there should be a test with sync_milestones returning something other than None