Esempio n. 1
0
def pytest_runtest_teardown():
    conn = DynamoDBConnection()
    conn.delete_table(Message.get_table_name())
    conn.delete_table(ChannelJoinInfo.get_table_name())
    conn.delete_table(ChannelUsageLog.get_table_name())
    conn.delete_table(Channel.get_table_name())
    conn.delete_table(ChannelWithdrawalLog.get_table_name())

    Message.create_table()
    ChannelWithdrawalLog.create_table()
    ChannelJoinInfo.create_table()
    ChannelUsageLog.create_table()
    Channel.create_table()
Esempio n. 2
0
def pytest_runtest_teardown():
    conn = DynamoDBConnection()
    conn.delete_table(Message.get_table_name())
    conn.delete_table(ChannelJoinInfo.get_table_name())
    conn.delete_table(ChannelUsageLog.get_table_name())
    conn.delete_table(Channel.get_table_name())
    conn.delete_table(ChannelWithdrawalLog.get_table_name())

    Message.create_table()
    ChannelWithdrawalLog.create_table()
    ChannelJoinInfo.create_table()
    ChannelUsageLog.create_table()
    Channel.create_table()
Esempio n. 3
0
def group_chat_channel2(user1, user2):
    channel, _ = Channel.create_channel([user1, user2], is_group_chat=True)
    return channel.name
Esempio n. 4
0
def group_chat_channel1(user1):
    channel, _ = Channel.create_channel([user1], is_group_chat=True)
    return channel.name
Esempio n. 5
0
def channel1(user1, user2):
    channels = Channel.create_channel([user1, user2])
    return channels[0].name
Esempio n. 6
0
def group_chat_channel2(user1, user2):
    channel, _ = Channel.create_channel([user1, user2], is_group_chat=True)
    return channel.name
Esempio n. 7
0
def group_chat_channel1(user1):
    channel, _ = Channel.create_channel([user1], is_group_chat=True)
    return channel.name
Esempio n. 8
0
def channel1(user1, user2):
    channels = Channel.create_channel([user1, user2])
    return channels[0].name