Skip to content

Commit a58af9e

Browse files
committed
Add representation
1 parent 0e25a7e commit a58af9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/extensions/test_database_resolver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ class TestModel(db.model):
8787
id = Column(Integer, primary_key=True)
8888
name = Column(String)
8989

90+
def __repr__(self):
91+
return self.repr(id=self.id, name=self.name)
92+
9093
def test_creating(self):
9194
self.db.initialize_tables()
9295
assert len(self.TestModel.query.all()) == 0

0 commit comments

Comments
 (0)