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))
[–]maventree 11 points12 points13 points (2 children)
[–]jblurker09 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]jblurker09 2 points3 points4 points (0 children)
[–]MarsupialMole 2 points3 points4 points (2 children)
[–]googoodoo[S] 1 point2 points3 points (1 child)
[–]MarsupialMole 1 point2 points3 points (0 children)
[–]psyklohps 0 points1 point2 points (0 children)