There should be changes to 3 files, 2 of which should be new files in the correct location.
pythoncalculator/subtract.py
There should be a new pythoncalculator/subtract.py
containing:
def subtract(x, y):
return x - y
pythoncalculator/__init__.py
The pythoncalculator/__init__.py
file should contain the following line:
from .subtract import subtract
tests/test_subtract.py
There should be a new tests/test_subtract.py
containing:
from pythoncalculator import subtract
def test_subtract():
assert subtract(1, 3) == -2
There should be changes to 3 files, 2 of which should be new files in the correct location.
pythoncalculator/divide.py
There should be a new pythoncalculator/divide.py
containing:
def divide(x, y):
return x / y
pythoncalculator/__init__.py
The pythoncalculator/__init__.py
file should contain the following line:
from .divide import divide
tests/test_divide.py
There should be a new tests/test_divide.py
containing:
from pythoncalculator import divide
def test_divide():
assert divide(10, 2) == 5
There should be changes to 3 files, 2 of which should be new files in the correct location.
pythoncalculator/multiply.py
There should be a new pythoncalculator/multiply.py
containing:
def multiply(x, y):
return x * y
pythoncalculator/__init__.py
The pythoncalculator/__init__.py
file should contain the following line:
from .multiply import multiply
tests/test_multiply.py
There should be a new tests/test_multiply.py
containing:
from pythoncalculator import multiply
def test_multiply():
assert multiply(10, 3) == 30