Posts: 1
Registered: ‎02-18-2021

Unit vs Integration Testing

Hello everyone,,


I am always confused about the difference between these two. If the chunk below was the app, how would a unit test look like? And an integration test?


def add(a, b):
    return a + b

def mult(a, b):
    return a * b

if __name__ == "__main__":
    mult(10, add(2, 5))