From: Jannik ZANDER Date: Thu, 23 Jul 2020 15:35:36 +0000 (+0200) Subject: Initial commit X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=c2892fb483933bc42666ac2a9ace1777d01a0afc;p=pytest.git Initial commit --- c2892fb483933bc42666ac2a9ace1777d01a0afc 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