Пример #1
0
def test_standup_send_5():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    standup_start(owner_token, channel_id1, 10)
    with pytest.raises(ValueError):
        standup_send(owner_token, channel_id1, "")
Пример #2
0
def test_standup_send_6():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    standup_start(owner_token, channel_id1, 10)
    with pytest.raises(AccessError):
        standup_send(u_token, channel_id1, "Hey Lets start the standup")
Пример #3
0
def test_standup_send_4():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    standup_start(owner_token, channel_id1, 10)
    standup_send(owner_token, channel_id1, 999 * "A")
Пример #4
0
def test_standup_send_10():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    standup_start(owner_token, channel_id1, 10)
    standup_send(owner_token, channel_id1, "Hey Lets start the standup")
Пример #5
0
def test_standup_active_3():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    standup_start(owner_token, channel_id1, 10)
    assert standup_active(owner_token, channel_id1)['is_active'] is True
Пример #6
0
def test_standup_start_4():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    endtime = datetime.now() + timedelta(minutes=15)
    assert standup_start(owner_token, channel_id1, 10)
Пример #7
0
def test_standup_start_3():
    owner_token, u_token = setup()
    channel1 = channels_create(owner_token, 'SERVER1', True)
    channel_id1 = channel1['channel_id']
    with pytest.raises(AccessError):
        standup_start(u_token, channel_id1, 10)