Change Dashboard factory to generate non drafts

This commit is contained in:
Arik Fraimovich 2016-11-29 17:53:19 +02:00 committed by Allen Short
parent d59299b85a
commit 8680ebe96f

View File

@ -57,7 +57,11 @@ data_source_factory = ModelFactory(redash.models.DataSource,
org_id=1)
dashboard_factory = ModelFactory(redash.models.Dashboard,
name='test', user=user_factory.create, layout='[]', org=1)
name='test',
user=user_factory.create,
layout='[]',
is_draft=False,
org=1)
api_key_factory = ModelFactory(redash.models.ApiKey,
object=dashboard_factory.create)