def stream_with_users(super_admin_user, group_admin_user, user, view_only_user): stream = StreamFactory( users=[super_admin_user, group_admin_user, user, view_only_user]) stream_id = stream.id yield stream StreamFactory.teardown(stream_id)
def public_stream(): return StreamFactory()
def stream_with_users(super_admin_user, group_admin_user, user, view_only_user): return StreamFactory( users=[super_admin_user, group_admin_user, user, view_only_user])
def public_stream2(): stream = StreamFactory() stream_id = stream.id yield stream StreamFactory.teardown(stream_id)
def public_stream(): stream = StreamFactory() # Save ID of new DB row stream_id = stream.id yield stream StreamFactory.teardown(stream_id)