(mostly) your changes don't break other modules 4 Notice bugs "easily" 4 Make maintainable software 4 Be kind with future developers Testing in Python - Erick Navarro - @erickgnavar 7
no network""" # make a request to some API def calculate_beer_price(): temp = fetch_weather("Lima") if temp is None: return 9.0 elif temp > 25.0: return 10.5 else: return 8.0 Testing in Python - Erick Navarro - @erickgnavar 28
no network""" # make a request to some API def calculate_beer_price(): temp = fetch_weather("Lima") if temp is None: return 9.0 elif temp > 25.0: return 10.5 else: return 8.0 Testing in Python - Erick Navarro - @erickgnavar 28
no network""" # make a request to some API def calculate_beer_price(): temp = fetch_weather("Lima") if temp is None: return 9.0 elif temp > 25.0: return 10.5 else: return 8.0 Testing in Python - Erick Navarro - @erickgnavar 28
application 4 Testing helps you to do better code 4 100% test coverage doesn't ensure the code is free of bugs Testing in Python - Erick Navarro - @erickgnavar 32
application 4 Testing helps you to do better code 4 100% test coverage doesn't ensure the code is free of bugs 4 One test at time Testing in Python - Erick Navarro - @erickgnavar 32