# test_Calculator.py # Calculator_test.py import pytest # from ModuleName import ClassName from Calculator import Calculator # Setup the classes test objects @pytest.fixture def Calc(): return Calculator() # Create test data for add() def test_add(Calc): assert Calc.add(2,3) == 5 # pass a=2, b=3 5 == 5 #assert Calc.add(-1,1) == 2 # fail actual 0, expected 2 assert Calc.add(2,2) == 4 # pass # Setup mock data using mockito # https://pypi.org/search/?q=mockito