flake8
-
django_evolution/mutators/base.py (Diff revision 1) Show all issues
Review Request #12270 — Created May 6, 2022 and submitted
Information | |
---|---|
chipx86 | |
Django Evolution | |
release-2.x | |
Reviewers | |
django-evolution | |
This introduces two new class:
BaseMutator
andBaseAppStateMutator
.
BaseMutator
is the base class for all mutators. It stores a couple of
attributes used in the mutator process (can_simulate
andfinalized
),
introduces a function for finalizing, and a defaultto_sql()
implementation.
BaseAppStateMutator
subclasses this, takes the parentAppMutator
,
and sets up some forwarding properties that reflect or update the
AppMutator
. It containsrun_mutation()
andrun_simulation()
functions as well.Right now, only
ModelMutator
subclassesBaseAppStateMutator
, but
another will be coming soon.
All unit tests pass.
Tested along with an upcoming new mutator.
Summary | |
---|---|
Description | From | Last Updated |
---|---|---|
F821 undefined name 'CannotSimulate' |
![]() |
Added a missing import.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+526 -140) |