by Carlos Ble | Oct 11, 2013 | JavaScript, pyDoubles, Test Driven Development, Testing
There are several good frameworks out there to create test doubles with JavaScript. Jasmine and Sinon provide test spies and stubs. JsMockito looks good too. However, creating your own API for test stubs is very easy. I’ve created mine as an exercise....
by Carlos Ble | Oct 24, 2011 | pyDoubles
Thanks to Nestor Salceda, now pyDoubles do not raise errors on assertion failures, but just fails :-). Subtle difference but an important one. The other change is a new method alias, suggested by an user: mock.assert_that_is_satisfied() is now also:...
by Carlos Ble | Jul 19, 2011 | iExpertos, pyDoubles
What’s new in pyDoubles 1.3? times statement is also available in spies, not only mocks stubs ignoring arguments can live together with stubs defined with arguments a new matcher: obj_with_fields 1: This sintax is now possible:...
by Carlos Ble | Jul 1, 2011 | pyDoubles, Test Driven Development
There you go another version of the pyDoubles framework, mock objects for Python and more 😉 What’s new in this release? Two minor bugfixes. You can see test cases and fixes here and here. If you want to assert that a given object was passed in as a parameter, as...