예제 #1
0
def test_delete_settings_from_fixture(default_settings):
    groups_count = SettingsGroup.query.count()
    assert len(settings_fixture) == groups_count

    deleted = delete_settings_from_fixture(settings_fixture)

    assert len(settings_fixture) == len(deleted)
    assert not SettingsGroup.query.count()
    assert not Setting.query.count()
예제 #2
0
def test_delete_settings_from_fixture(default_settings):
    groups_count = SettingsGroup.query.count()
    assert len(settings_fixture) == groups_count

    deleted = delete_settings_from_fixture(settings_fixture)

    assert len(settings_fixture) == len(deleted)
    assert not SettingsGroup.query.count()
    assert not Setting.query.count()
예제 #3
0
파일: __init__.py 프로젝트: mcdir/flaskbb
 def uninstall(self):
     delete_settings_from_fixture(fixture)
예제 #4
0
 def uninstall(self):
     delete_settings_from_fixture(fixture)