예제 #1
0
def test_create_settings_from_fixture(database):
    assert not SettingsGroup.query.count()
    assert not Setting.query.count()

    created = create_settings_from_fixture(settings_fixture)

    assert len(settings_fixture) == len(created)
    assert SettingsGroup.query.count() == len(created)
예제 #2
0
def test_create_settings_from_fixture(database):
    assert not SettingsGroup.query.count()
    assert not Setting.query.count()

    created = create_settings_from_fixture(settings_fixture)

    assert len(settings_fixture) == len(created)
    assert SettingsGroup.query.count() == len(created)
예제 #3
0
파일: __init__.py 프로젝트: mcdir/flaskbb
 def install(self):
     create_settings_from_fixture(fixture)
예제 #4
0
 def install(self):
     create_settings_from_fixture(fixture)