From c2892fb483933bc42666ac2a9ace1777d01a0afc Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Thu, 23 Jul 2020 17:35:36 +0200 Subject: [PATCH 1/1] Initial commit --- .gitignore | 2 ++ .vscode/settings.json | 8 ++++++++ print.py | 5 +++++ python.code-workspace | 8 ++++++++ test_print.py | 4 ++++ 5 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 print.py create mode 100644 python.code-workspace create mode 100644 test_print.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09bf5d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +__pycache__/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5035f91 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "python.testing.pytestArgs": [ + "." + ], + "python.testing.unittestEnabled": false, + "python.testing.nosetestsEnabled": false, + "python.testing.pytestEnabled": true +} \ No newline at end of file diff --git a/print.py b/print.py new file mode 100644 index 0000000..5c0732c --- /dev/null +++ b/print.py @@ -0,0 +1,5 @@ +def my_func1(): + print('Hello world!') + return 5 + + diff --git a/python.code-workspace b/python.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/python.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/test_print.py b/test_print.py new file mode 100644 index 0000000..9180c2a --- /dev/null +++ b/test_print.py @@ -0,0 +1,4 @@ +import pytest +from print import * + +assert(my_func1() == 5) \ No newline at end of file -- 2.43.0