Пример #1
0
def test_delete_first_group(app):
    if app.group.count() == 0:
        app.group.create(group(name="bbb", header="ccc", footer="ddd"))
    app.group.delete_first_group()
Пример #2
0
def test_add_group(app):
    app.group.create(group(name="Name", header="Head", footer="Footer"))
Пример #3
0
def test_add_empty_group(app):
    app.group.create(group(name="", header="", footer=""))
Пример #4
0
def test_add_empty_group(app):
    app.group.create(group(name="", header="", footer=""))
Пример #5
0
def test_delete_first_group(app):
    if app.group.count() == 0:
        app.group.create(group(name = 'test'))
    app.group.delete_first_group()
Пример #6
0
def test_add_group(app):
    app.session.login(username="******", password="******")
    app.group.create(
        group(name="group_name_cool", header="group_header_cool_logo"))
    app.session.logout()
Пример #7
0
def test_add_group(app):
    app.group.create(group(name="bbb", header="ccc", footer="ddd"))
Пример #8
0
def test_add_empty_group(app):
    app.session.login(username="******", password="******")
    app.group.create(group(name="", header=""))
    app.session.logout()
Пример #9
0
def test_edit_first_group_data(app):
    if app.group.count() == 0:
        app.group.create(group(name="bbb", header="ccc", footer="ddd"))
    app.group.edit_first_group(group(name="qwerty", header="asdf", footer="zxcv"))
Пример #10
0
def test_edit_first_group_name(app):
    if app.group.count() == 0:
        app.group.create(group(name="bbb", header="ccc", footer="ddd"))
    app.group.edit_first_group_data(group(name="New group"))
Пример #11
0
def test_big_modify_group_name(app):
    if app.group.count() == 0:
        app.group.create(group(name="Groups name for modify"))
    app.group.modify_first_group(group(name="New Name"))
Пример #12
0
def test_big_modify_group_header(app):
    if app.group.count() == 0:
        app.group.create(group(header="Groups header for modify"))
    app.group.modify_first_group(group(header="New Header"))