]> git.zndr.dk Git - pytest.git/commitdiff
Initial commit master
authorJannik ZANDER <jzander@grundfos.com>
Thu, 23 Jul 2020 15:35:36 +0000 (17:35 +0200)
committerJannik ZANDER <jzander@grundfos.com>
Thu, 23 Jul 2020 15:40:46 +0000 (17:40 +0200)
.gitignore [new file with mode: 0644]
.vscode/settings.json [new file with mode: 0644]
print.py [new file with mode: 0644]
python.code-workspace [new file with mode: 0644]
test_print.py [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..09bf5d6
--- /dev/null
@@ -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 (file)
index 0000000..5035f91
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..876a149
--- /dev/null
@@ -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 (file)
index 0000000..9180c2a
--- /dev/null
@@ -0,0 +1,4 @@
+import pytest
+from print import *
+
+assert(my_func1() == 5)
\ No newline at end of file