What do we use in place of Sham.reset in Machinist2

67 views
Skip to first unread message

tispratik

unread,
Jun 27, 2011, 5:09:04 PM6/27/11
to Machinist Users
What do we use in place of Sham.reset in Machinist2 ?

Gabriel Sobrinho

unread,
Jun 27, 2011, 5:10:29 PM6/27/11
to machini...@googlegroups.com
Sham was removed.

You can use faker to replace it if you would :)

On Jun 27, 2011, at 6:09 PM, tispratik wrote:

> What do we use in place of Sham.reset in Machinist2 ?
>

> --
> You received this message because you are subscribed to the Google Groups "Machinist Users" group.
> To post to this group, send email to machini...@googlegroups.com.
> To unsubscribe from this group, send email to machinist-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/machinist-users?hl=en.
>

Cheers,

Gabriel Sobrinho

tispratik

unread,
Jun 27, 2011, 5:13:30 PM6/27/11
to Machinist Users
Thanks Gabriel, can you tell me what is the purpose of Sham.reset?
I just commented that code out, am i doing something wrong?

Thanks,
Pratik!


On Jun 27, 4:10 pm, Gabriel Sobrinho <gabriel.sobri...@gmail.com>
wrote:

Gabriel Sobrinho

unread,
Jun 27, 2011, 5:17:33 PM6/27/11
to machini...@googlegroups.com
Sham was used to generate random data.

Like names, emails, etc.

I didn't remember the syntax.


But, if you want to generate random data, faker would be great.

Have some alternatives but I never used random data for my tests.

I prefer to know which data will be on the test ;)

Pete Yandell

unread,
Jun 27, 2011, 8:00:41 PM6/27/11
to machini...@googlegroups.com
Like Gabriel said, Sham doesn't exist in Machinist 2, so you don't use anything.

Reply all
Reply to author
Forward
0 new messages