Ejemplo n.º 1
0
    def run(self):
        Database.init_db()
        parser = argparse.ArgumentParser(description='MiniVenmo')
        parser.add_argument('filename', nargs='?')
        args = parser.parse_args()

        if args.filename:
            self.__process_file(args.filename)
            return True

        self.__usage()
        while True:
            args = raw_input('> ').split()
            if args[0].lower() == 'q':
                print('Exiting...\n')
                return True
            elif args[0].lower() == 'help':
                self.__usage()
                continue
            try:
                self.__process_args(args)
            except Exception as e:
                print(e.message)
        return True
Ejemplo n.º 2
0
import unittest
from minivenmo import Database
from tests.test_user import TestUsersController
from tests.test_transaction import TestTransactionsController
from tests.test_router import TestRouter

if __name__ == '__main__':
    Database.init_db()
    unittest.main()
Ejemplo n.º 3
0
Archivo: tests.py Proyecto: T-G-P/Misc
import unittest
from minivenmo import Database
from tests.test_user import TestUsersController
from tests.test_transaction import TestTransactionsController
from tests.test_router import TestRouter

if __name__ == "__main__":
    Database.init_db()
    unittest.main()