Skip to content

Commit

Permalink
Rename a StepBuilder instance to step_builder
Browse files Browse the repository at this point in the history
The variable is a StepBuilder, not a BuildStep...
  • Loading branch information
rbarrois committed Oct 11, 2020
1 parent 772a067 commit 2a87857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ def _generate(cls, strategy, params):
"Ensure %(f)s.Meta.model is set and %(f)s.Meta.abstract "
"is either not set or False." % dict(f=cls.__name__))

step = builder.StepBuilder(cls._meta, params, strategy)
return step.build()
step_builder = builder.StepBuilder(cls._meta, params, strategy)
return step_builder.build()

@classmethod
def _after_postgeneration(cls, instance, create, results=None):
Expand Down

0 comments on commit 2a87857

Please sign in to comment.