default attributes on db object are now queries
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ def test_manage_character(db, classes_factory, ancestries_factory):
|
||||
# load the fixtures so they are bound to the current session
|
||||
classes = classes_factory()
|
||||
ancestries = ancestries_factory()
|
||||
darkvision = db.session.query(schema.AncestryTrait).filter_by(name="Darkvision")[0]
|
||||
darkvision = db.AncestryTrait.filter_by(name="Darkvision")[0]
|
||||
|
||||
# create a human character (the default)
|
||||
char = schema.Character(name="Test Character")
|
||||
|
||||
Reference in New Issue
Block a user