Skip to content

Commit fe925fe

Browse files
committed
Fixed test
1 parent 245f896 commit fe925fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ class B(A):
8989

9090

9191
def test_mixins():
92-
class Mixin:
92+
class Mixin(Model, abc.ABC):
9393
col1: str
9494
col2 = Column(type=int)
9595

96-
class A(Model, Mixin):
96+
assert not hasattr(Mixin, "__mapper__")
97+
98+
class A(Mixin, Model):
9799
col3 = Column(type=bool)
98100

99101
assert A.__mapper__

0 commit comments

Comments
 (0)