Anton Shestakov <av6@dwimlabs.net>, Sat, 23 Sep 2017 12:43:15 +0800
models: it's now obvious that the order of columns should be this
Now the index helps with "where project_id = ?" and "order by ordinal" as well.
run-tests.py
Permissions: -rwxr-xr-x
from candolint.models import database, Project, Change, Check database.init(':memory:') database.create_tables([Project, Change, Check], safe=True) database.connect = Mock() sys.exit(pytest.main(['tests'] + sys.argv[1:])) if __name__ == '__main__':