moved dev_setup to reference qsim packages

This commit is contained in:
fawce
2012-02-07 23:19:09 -05:00
parent 9078bf922b
commit afc3224b86
3 changed files with 2 additions and 7 deletions
-6
View File
@@ -21,12 +21,6 @@ def db_main():
tornado.options.parse_command_line()
connection, db = qutil.connect_db()
#create a user for testing
salt, encrypted_password = qbt_server.encrypt_password(None, options.password)
if not db.users.find_one({'email':options.user_email}):
db.users.insert({'email':options.user_email, 'encrypted_password':encrypted_password, 'salt':salt})
#create one mythical company
if not db.company_info.find_one({'sid':133}):
db.company_info.insert({'sid':133, "exchange" : "NEW YORK STOCK EXCHANGE", "symbol" : "JHF", "first date" : "01/04/1993", "last date" : "10/01/2008", "sid" : 133, "industry code" : "130A", "company name" : "JACK INC"})
+1
View File
@@ -8,6 +8,7 @@ import json
import logging
import uuid
import zmq
import pymongo
from tornado.options import define, options
logger = logging.getLogger('QSimLogger')
+1 -1
View File
@@ -22,7 +22,7 @@ workon qsim
./scripts/ordered_pip.sh ./scripts/requirements_dev.txt
#setup the local mongodb
python ./scripts/dev_setup.py
python ./dev_setup.py
#run all the tests in test
nosetests --with-xcoverage --with-xunit --cover-erase --cover-package=simulator,transforms