diff --git a/README.md b/README.md index dce752e..4c72cad 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# python-example \ No newline at end of file +[![Build Status](https://travis-ci.org/madalawok/python-example.svg?branch=master)](https://travis-ci.org/madalawok/python-example) diff --git a/hello.py b/hello.py index d4fb0b0..90fcf45 100644 --- a/hello.py +++ b/hello.py @@ -9,11 +9,16 @@ def hello(what): def say_what(): return 'world' +def say_what2(): + return 'world2' + def main(): + print("Hello World") hello(say_what()) + print("Hello World2") + hello(say_what2()) return 0 - if __name__ == '__main__': sys.exit(main()) diff --git a/tests/test_hello.py b/tests/test_hello.py index a9ecb71..60d2db2 100644 --- a/tests/test_hello.py +++ b/tests/test_hello.py @@ -3,3 +3,6 @@ def test_says_world(): assert hello.say_what() == 'world' + +def test_says_world2(): + assert hello.say_what2() == 'world2'