Пример #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)