Skip to content

Commit 4d0ad4d

Browse files
committed
test(tests): 🚨 Update test_partial_model_will_be_the_same_on_mixin test to include partial_cls_name
1 parent 228574d commit 4d0ad4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/test_partial_without_mixin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def test_partial_model_will_only_be_cached_with_same_params():
5555

5656

5757
def test_partial_model_will_be_the_same_on_mixin():
58-
# Note: When we do not pass recursive=False the functools.lru_cache will
58+
# Note: When we do not pass recursive=False and partial_cls_name=None the functools.lru_cache will
5959
# actually create a separate model class, as the parameters differ.
60-
SomethingWithMixinPartial1 = create_partial_model(SomethingWithMixin, recursive=False)
60+
SomethingWithMixinPartial1 = create_partial_model(SomethingWithMixin, recursive=False, partial_cls_name=None)
6161
SomethingWithMixinPartial2 = SomethingWithMixin.model_as_partial()
6262

6363
assert SomethingWithMixinPartial1 is SomethingWithMixinPartial2

0 commit comments

Comments
 (0)