Re: [openstack-dev] [all] In defence of faking

2014-09-22 Thread Monty Taylor
On 09/22/2014 08:58 AM, Matthew Booth wrote: If you missed the inaugural OpenStack Bootstrapping Hour, it's here: http://youtu.be/jCWtLoSEfmw . I think this is a fantastic idea and big thanks to Sean, Jay and Dan for doing this. I liked the format, the informal style and the content.

Re: [openstack-dev] [all] In defence of faking

2014-09-22 Thread Robert Collins
On 23 September 2014 03:58, Matthew Booth mbo...@redhat.com wrote: If you missed the inaugural OpenStack Bootstrapping Hour, it's here: http://youtu.be/jCWtLoSEfmw . I think this is a fantastic idea and big thanks to Sean, Jay and Dan for doing this. I liked the format, the informal style and

Re: [openstack-dev] [all] In defence of faking

2014-09-22 Thread Joshua Harlow
I would have to agree, fakes certainly have there benefits. IMHO, sometimes when you are testing a complex set of interactions you don't want to have to mock the full set of interactions when you just want to determine if the end result worked or did not work. For example, lets say I have a

Re: [openstack-dev] [all] In defence of faking

2014-09-22 Thread Jay Pipes
On 09/22/2014 03:36 PM, Robert Collins wrote: On 23 September 2014 03:58, Matthew Booth mbo...@redhat.com wrote: If you missed the inaugural OpenStack Bootstrapping Hour, it's here: http://youtu.be/jCWtLoSEfmw . I think this is a fantastic idea and big thanks to Sean, Jay and Dan for doing

Re: [openstack-dev] [all] In defence of faking

2014-09-22 Thread Robert Collins
On 23 September 2014 08:09, Jay Pipes jaypi...@gmail.com wrote: On 09/22/2014 03:36 PM, Robert Collins wrote: I'm going to push on this a bit further. Mocking is fine in many cases, but it encodes dependencies from within your objects into the test suite: e.g. that X will call Y and then Z -