Mocking Python

  1. Plan
  2. About me
  3. Goal
  4. What is Mocking and Monkey Patching?
  5. Situations
  6. Unit testing vs. Integration testing
  7. Experiment with mocking in various situations
  8. Examples are simple
  9. Simple test case using Pytest
  10. Hard coded path
  11. Manually Patching attribute
  12. Monkey Patching attribute
  13. Monkey Patching functions
  14. Monkey Patching dictionary items
  15. Mocking a whole class
  16. Mocking input/output
  17. Mocking input/output
  18. Mocking random numbers
  19. Exercises
  20. Work in pairs
  21. Exercise: One Dimentsional space-fight
  22. Exercise: web client
  23. Exercise: Open WeatherMap client
  24. Mocking A Bank
  25. Testing the whole application
  26. Resources
  27. Retrospective
  28. Job searching help
  29. Solutions - game
  30. Solutions - Mocking the database access