- 1. Fixtures and Mocking in Python
- 2. Fixtures and Mocking in Python
- 2.1. How do you test Moon-landing?
- 2.2. How do you test a system ...
- 2.3. Plan
- 2.4. About me
- 2.5. Goal
- 2.6. Fixtures
- 2.7. Fixtuers in Pytest
- 2.8. Traditional xUnit fixtures
- 2.9. Dependency Injection
- 2.10. Temporary directory - tmpdir
- 2.11. Capture STDOUT and STDERR - capsys
- 2.12. Home-made fixture
- 2.13. Home-made fixture - conftest
- 2.14. Home-made fixture with tempdir
- 2.15. Home-made fixture with yield
- 2.16. Fixture Autouse
- 2.17. Fixture Autouse with yield
- 2.18. Fixture for MongoDB
- 2.19. Test Doubles
- 2.20. Test Doubles explained
- 2.21. Verify behavior or state?
- 2.22. What is Mocking and Monkey Patching?
- 2.23. Situations
- 2.24. Unit testing vs. Integration testing
- 2.25. Experiment with mocking in various situations
- 2.26. Examples are simple
- 2.27. Hard coded path
- 2.28. Manually Patching attribute
- 2.29. Monkey Patching attribute
- 2.30. Monkey Patching functions
- 2.31. Monkey Patching dictionary items
- 2.32. Mocking a whole class
- 2.33. Mocking input/output
- 2.34. Mocking input/output
- 2.35. Mocking random numbers
- 2.36. Exercises
- 2.37. Work in pairs
- 2.38. Exercise: test login expiration
- 2.39. Solution: test login expiration
- 2.40. Exercise: Record e-mail sending
- 2.41. Solution: Record e-mail sending
- 2.42. Exercise: Fixture database
- 2.43. Exercise: One Dimentsional space-fight
- 2.44. Exercise: web client
- 2.45. Exercise: Open WeatherMap client
- 2.46. Exercise: Mocking A Bank
- 2.47. Testing the whole application
- 2.48. Resources
- 2.49. Retrospective
- 2.50. Job searching help
- 2.51. Solutions - game
- 2.52. Solutions - Mocking the database access