Finally achieve 100% coverage! Now is time to refactor and deliver!

This commit is contained in:
Vincent Jacques
2012-05-27 12:12:03 +01:00
parent aff8a573a1
commit 55fd05fb2b
9 changed files with 36 additions and 23 deletions
-9
View File
@@ -113,11 +113,6 @@ class Repository( object ):
self.__completeIfNeeded( self.__master_branch )
return self.__master_branch
@property
def mirror_url( self ):
self.__completeIfNeeded( self.__mirror_url )
return self.__mirror_url
@property
def name( self ):
self.__completeIfNeeded( self.__name )
@@ -891,7 +886,6 @@ class Repository( object ):
self.__id = None
self.__language = None
self.__master_branch = None
self.__mirror_url = None
self.__name = None
self.__open_issues = None
self.__organization = None
@@ -972,9 +966,6 @@ class Repository( object ):
if "master_branch" in attributes and attributes[ "master_branch" ] is not None: # pragma no branch
assert isinstance( attributes[ "master_branch" ], ( str, unicode ) )
self.__master_branch = attributes[ "master_branch" ]
if "mirror_url" in attributes and attributes[ "mirror_url" ] is not None: # pragma no branch
assert isinstance( attributes[ "mirror_url" ], ( str, unicode ) )
self.__mirror_url = attributes[ "mirror_url" ]
if "name" in attributes and attributes[ "name" ] is not None: # pragma no branch
assert isinstance( attributes[ "name" ], ( str, unicode ) )
self.__name = attributes[ "name" ]