We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 099079f + 76d0752 commit ea2543bCopy full SHA for ea2543b
exercises/10.1-Creating-Your-First-Function/app.py
@@ -1,6 +1,6 @@
1
def addNumbers(a,b)
2
# This is the function body. Write your code here.
3
-
+
4
5
# Do not change the code below
6
print(addNumbers(3,4))
exercises/10.1-Creating-Your-First-Function/test.py
@@ -0,0 +1,9 @@
+import pytest
+import app
+@pytest.mark.it('Function should be called with the sum of 3 + 4')
+def test_for_return():
+ from app import addNumbers
7
+ result = addNumbers(3,4)
8
+ assert result == 7
9
0 commit comments