Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pythoncalculator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .add import add

from .divide import divide
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add empty line at the end

2 changes: 2 additions & 0 deletions pythoncalculator/divide.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def divide(x, z):
return x / y
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add empty line at the end

5 changes: 5 additions & 0 deletions tests/test_divide.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from pythoncalculator import divide


def test_divide():
assert divide(10, 2) == 5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add empty line at the end