Retroactive TDD! :-P
This commit is contained in:
@@ -12,6 +12,7 @@ __meta__ = dict(
|
||||
'flickrscripts = flickrscripts:route',
|
||||
],
|
||||
},
|
||||
test_suite='nose.collector',
|
||||
)
|
||||
USAGE = 'Usage: {prog} <subcommand> [args]'
|
||||
|
||||
|
@@ -41,5 +41,9 @@ def get_flickr_from_rc_file(rc_file=expanduser('~/.flickrscripts.json')):
|
||||
return setup_flickr(rc_conf['APIKEY'], rc_conf['APISECRET'])
|
||||
|
||||
|
||||
def load_rc_file(rc_file=expanduser('~/.flickrscripts.json')):
|
||||
return json.load(open(rc_file))
|
||||
|
||||
|
||||
class InvalidPhotoIdError(ValueError):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user