mocks

now browsing by tag

 
 

Django Unit Testing with Mocks

Unit tests shouldn’t be treated like lesser code. It should be as clean as possible and don’t ever hesitate when it comes to refactoring the unit test code. It can save you a lot of trouble in the long run.

AngularJS: testing services that use $resource

when you’re writing services that interact with the backend, you may need to break your service into two services to avoid mock objects. And this is okay!