示例#1
0
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)
示例#2
0
def public_stream():
    return StreamFactory()
示例#3
0
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])
示例#4
0
def public_stream2():
    stream = StreamFactory()
    stream_id = stream.id
    yield stream
    StreamFactory.teardown(stream_id)
示例#5
0
def public_stream():
    stream = StreamFactory()
    # Save ID of new DB row
    stream_id = stream.id
    yield stream
    StreamFactory.teardown(stream_id)