Fix test issue with initdb

Non-sqlite DBs don't like maxvalue for Integer
This commit is contained in:
Joseph Schorr 2015-11-09 14:41:53 -05:00
parent c97bc0d8d0
commit daa74b5132

View file

@ -5,7 +5,6 @@ import random
import calendar import calendar
import os import os
from sys import maxsize
from datetime import datetime, timedelta from datetime import datetime, timedelta
from peewee import (SqliteDatabase, create_model_tables, drop_model_tables, savepoint_sqlite, from peewee import (SqliteDatabase, create_model_tables, drop_model_tables, savepoint_sqlite,
savepoint) savepoint)
@ -97,7 +96,7 @@ def __create_subtree(repo, structure, creator_username, parent, tag_map):
store.put_content('local_us', path, checksum) store.put_content('local_us', path, checksum)
new_image.security_indexed = False new_image.security_indexed = False
new_image.security_indexed_engine = maxsize new_image.security_indexed_engine = -1
new_image.save() new_image.save()
creation_time = REFERENCE_DATE + timedelta(weeks=image_num) + timedelta(days=model_num) creation_time = REFERENCE_DATE + timedelta(weeks=image_num) + timedelta(days=model_num)