Skip to content
Snippets Groups Projects
  1. Sep 13, 2018
  2. Sep 10, 2018
  3. Sep 05, 2018
  4. Aug 27, 2018
  5. Aug 23, 2018
  6. Aug 20, 2018
  7. Aug 17, 2018
    • Thomas Jürges's avatar
      Task SW-381: Mocking needs the path to the object not the source · 7b960f96
      Thomas Jürges authored
      Reminder for myself:
      Mocking is odd and does not follow common sense.  When I want to mock out a
      function joe that is imported into foo.bar like this:
      from there.here.willy import joe
      then I have to mock it like so:
      @mock.patch("foo.bar.joe")
      
      Common sense would tell to mock it like so:
      @mock.patch("there.here.willy.joe")
      7b960f96
  8. Aug 10, 2018
  9. Aug 08, 2018
  10. Aug 02, 2018
  11. Aug 01, 2018
  12. Jul 20, 2018
  13. Jul 19, 2018
  14. Jul 18, 2018
  15. Jul 13, 2018
  16. Jul 12, 2018
Loading