factory.Iterator with cycle=False haven't got a option reset #63

Closed
fsx999 opened this Issue May 29, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@fsx999

fsx999 commented May 29, 2013

Hi,
I am sorry for my bad english
With the factory.Iterator and cycle=False I can't reset the iterator.
For exemple :

ExempleFactory(factory.DjangoModelFactory):
    id = factory.Iterator([1,2,3], cycle=False)

ExempleFactory.reset(('id',))

ExempleFactory(reset=('id',)

Thanks you

@rbarrois

This comment has been minimized.

Show comment
Hide comment
@rbarrois

rbarrois Jun 13, 2013

Member

Would the following API suit you:
ExempleFactory.id.reset() ?

Member

rbarrois commented Jun 13, 2013

Would the following API suit you:
ExempleFactory.id.reset() ?

@fsx999

This comment has been minimized.

Show comment
Hide comment

fsx999 commented Jun 14, 2013

yes

@rbarrois rbarrois closed this in fda40cb Jun 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment