mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-13 17:42:42 +08:00
moved dev_setup to reference qsim packages
This commit is contained in:
@@ -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"})
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user