test_models fixes

This commit is contained in:
Allen Short
2016-11-29 09:48:39 -06:00
parent d1fcb43562
commit bb755b5c25
3 changed files with 48 additions and 42 deletions

View File

@@ -105,7 +105,7 @@ query_result_factory = ModelFactory(redash.models.QueryResult,
data='{"columns":{}, "rows":[]}',
runtime=1,
retrieved_at=utcnow,
query_text="SELECT 1",
query="SELECT 1",
query_hash=gen_query_hash('SELECT 1'),
data_source=data_source_factory.create,
org_id=1)