Commit 6eab922f authored by Sriram Karra's avatar Sriram Karra

Pass BBDB file as cmd line argument to test script

parent 1fd72612
## ##
## Created : Sat Apr 07 20:03:04 IST 2012 ## Created : Sat Apr 07 20:03:04 IST 2012
## Last Modified : Sat Apr 07 22:15:05 IST 2012 ## Last Modified : Sun Apr 08 08:08:05 IST 2012
## ##
## Copyright (C) 2012 Sriram Karra <karra.etc@gmail.com> ## Copyright (C) 2012 Sriram Karra <karra.etc@gmail.com>
## ##
...@@ -21,8 +21,15 @@ from folder_bb import BBContactsFolder ...@@ -21,8 +21,15 @@ from folder_bb import BBContactsFolder
from contact_bb import BBContact from contact_bb import BBContact
def main (argv=None): def main (argv=None):
print sys.argv
if len(sys.argv) > 1:
bbfn = sys.argv[1]
else:
bbfn = '/Users/sriramkarra/.bbdb.t'
tests = TestBBContact(config_fn='../app_state.json', tests = TestBBContact(config_fn='../app_state.json',
bbfn='/Users/sriramkarra/.bbdb') bbfn=bbfn)
class TestBBContact: class TestBBContact:
def __init__ (self, config_fn, bbfn): def __init__ (self, config_fn, bbfn):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment