Browse Source

Fixed test

sh4nks 11 years ago
parent
commit
25a2439067
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tests/unit/utils/test_populate.py

+ 4 - 3
tests/unit/utils/test_populate.py

@@ -1,4 +1,5 @@
-from flaskbb.utils.populate import create_default_groups, GROUPS
+from flaskbb.utils.populate import create_default_groups
+from flaskbb.fixtures.groups import fixture
 from flaskbb.user.models import Group
 
 
@@ -9,9 +10,9 @@ def test_create_default_groups(database):
 
     create_default_groups()
 
-    assert Group.query.count() == len(GROUPS)
+    assert Group.query.count() == len(fixture)
 
-    for key, attributes in GROUPS.items():
+    for key, attributes in fixture.items():
         group = Group.query.filter_by(name=key).first()
 
         for attribute, value in attributes.items():