# Path: database.py
# def init_db():


import os
import sys
import time
import settings
from datetime import datetime
from sqlalchemy import func
from database import db_session
from models import *
#!/usr/bin/env python

sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))


def do_pending(version):
    print 'add testrun for version {0.id}, phase {0.phase}, status {0.status}'.format(version)

# Path: database.py
# def init_db():


# Path: core/testrun_watcher.py
import os
import sys
import time
import settings
from datetime import datetime
from sqlalchemy import func
from database import db_session
from models import *

#!/usr/bin/env python

sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))


def do_pending(version):
    print 'add testrun for version {0.id}, phase {0.phase}, status {0.status}'.format(version)

    query = db_session.query(TestRun)\