from model.data import Group


def test_add_group(app, db, json_groups):
    group = json_groups
    before = db.get_group_list()
    app.group.create(group)
    after = db.get_group_list()
    assert sorted(before, key=Group.id_or_max) != sorted(after, key=Group.
        id_or_max)

b179f82f77d3a550f22705dac85f03d74149290d
<mask token>

<mask token>


def test_add_group(app, db, json_groups):
    group = json_groups
    before = db.get_group_list()
    app.group.create(group)
    after = db.get_group_list()
    assert sorted(before, key=Group.id_or_max) != sorted(after, key=Group.
        id_or_max)

from model.data import Group


def test_add_group(app, db, json_groups):
    group = json_groups
    before = db.get_group_list()
    app.group.create(group)
    after = db.get_group_list()
    assert sorted(before, key=Group.id_or_max) != sorted(after, key=Group.
        id_or_max)
