Pytest Mocking
- Pytest: Mocking - why?
- Pytest: Mocking - what?
- Pytest: What is Mocking? - Test Doubles
- Pytest: Monkey Patching
- Pytest: Hard-coded path
- Pytest: Hard-coded path - manually replace attribute
- Pytest: Hard-coded path - monkeypatch attribute
- Pytest: Hard-coded path - monkeypatch attribute - tempdir
- Pytest: Mocking slow external API call
- Pytest: Mocking slow external API call - manually replace function
- Pytest: Mocking slow external API call - manually replace function - broken remote
- Pytest: Mocking slow external API call - monkeypatch
- Pytest: Mocking STDIN
- Pytest: Mocking STDIN manually mocking
- Pytest: Mocking STDIN - monkeypatch
- Pytest: Mocking random numbes - the application
- Pytest: Mocking random numbes
- Pytest: Mocking multiple random numbers
- Pytest: Mocking environment variables
- Pytest: Mocking time
- Pytest: Mocking time (test expiration)
- Pytest: mocking specific timestamp with datetime
- Pytest: mocking specific timestamp with datetime
- Pytest: mocking datetime.date.today
- Pytest: mocking datetime date
- Pytest: One dimensional spacefight
- Pytest: Mocking input and output in the game
- Pytest: Mocking input and output in the game - no tools
- Pytest: Mocking random in the game
- Pytest: Mocking random in the game - no tools
- Pytest: Flask app sending mail
- Pytest: Mocking Flask app sending mail
- Pytest: Mocking - collecting stats example