How to reuse Django tests? -
i'm extending django queryset
subclass (say myqueryset
), , guarantee implementation not break existing functionality of queryset
.
how can test myqueryset
against existing django tests on queryset
without having replicate them?
for concreteness, let's consider example of tests of prefetch_related
, found in django/tests/prefetch_related
package.
i run tests on myqueryset
. however, tests implemented using default manager of models in package. have idea how e.g. duck type objects
custom manager uses myqueryset
?
Comments
Post a Comment