def test_logs_create_method(self): q = Query(name='Query', description='', query_text='', user=self.factory.user, data_source=self.factory.data_source, org=self.factory.org) change = Change.last_change(q) self.assertIsNotNone(change) self.assertEqual(q.user, change.user)
def create_object(factory): obj = Query(name='Query', description='', query_text='SELECT 1', user=factory.user, data_source=factory.data_source, org=factory.org) return obj
def obj(self): obj = Query(name='Query', description='', query_text='SELECT 1', user=self.factory.user, data_source=self.factory.data_source, org=self.factory.org) return obj
def create_object(factory): obj = Query( name="Query", description="", query_text="SELECT 1", user=factory.user, data_source=factory.data_source, org=factory.org, ) return obj
def obj(self): obj = Query( name="Query", description="", query_text="SELECT 1", user=self.factory.user, data_source=self.factory.data_source, org=self.factory.org, ) return obj