Exemplo n.º 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)
Exemplo n.º 2
0
def public_stream2():
    stream = StreamFactory()
    stream_id = stream.id
    yield stream
    StreamFactory.teardown(stream_id)
Exemplo n.º 3
0
def public_stream():
    stream = StreamFactory()
    # Save ID of new DB row
    stream_id = stream.id
    yield stream
    StreamFactory.teardown(stream_id)