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.
1 parent fe8ccbc commit 53388f6Copy full SHA for 53388f6
Test
@@ -3,4 +3,4 @@
3
basedir=$(cd "$(dirname "$0")" && pwd -P)
4
5
cd "$basedir"
6
-python hello.py
+pytest hello.py
hello.py
@@ -1 +1,8 @@
1
-print("Hello, world.")
+def hello(name):
2
+ return 'Hello, {}.'.format(name)
+
+def test_hello():
+ assert 'Hello, Fred.' == hello('Fred')
7
+if __name__ == '__main__':
8
+ print(hello('Taro'))
0 commit comments