You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a TestCase with isolate_apps as context manager. In this test case, I defined two dummy models which inherits a global model BaseModel which uses InheritanceManager. When I try to resolve subclasses using select_subclasses, it returns instances of BaseModel instead of subclasses.
If i remove isolate_apps context manager it works fine but other test cases fail because foo and bar tables don't exist.
Problem
I'm running a TestCase with
isolate_apps
as context manager. In this test case, I defined two dummy models which inherits a global modelBaseModel
which usesInheritanceManager
. When I try to resolve subclasses usingselect_subclasses
, it returns instances ofBaseModel
instead of subclasses.If i remove
isolate_apps
context manager it works fine but other test cases fail because foo and bar tables don't exist.Environment
Code examples
The text was updated successfully, but these errors were encountered: