Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

But How Do You Know Your Mock Is Valid? Verified Fakes of Web Services

EuroPython Conference via YouTube

Overview

Explore the concept of verified fakes for web services in this 33-minute EuroPython Conference talk. Learn how to create accurate mocks of third-party services for testing purposes, ensuring your code works correctly without making expensive or slow network calls. Discover the benefits and challenges of using verified fakes, including maintaining mock validity as services change. Follow the example of VWS-Python to understand the practical implementation of verified fakes. Gain insights into combining tools like pytest, Travis CI, requests, and Responses to create reliable test environments. Suitable for developers interested in writing correct software and familiar with basic testing techniques.

Syllabus

Introduction
What is a web service
Requests Mock
Mock Problems
Mock Errors
Updating Mocks
Open Source Mark
Travis CI
Mock Alternative
Writing the mark
My tests
Copying incorrectly
What is a verified fake
Test schedule
Wine example
No errors
Incompatibility
Adding value
Conclusion
Questions

Taught by

EuroPython Conference

Reviews

Start your review of But How Do You Know Your Mock Is Valid? Verified Fakes of Web Services

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.