diff --git a/.gitmodules b/.gitmodules index 2879ba7..6af3076 100644 --- a/.gitmodules +++ b/.gitmodules @@ -46,3 +46,6 @@ [submodule "__scripts__/report"] path = __scripts__/report url = https://git.mount-mockery.de/pylib/report.git +[submodule "__scripts__/rspec"] + path = __scripts__/rspec + url = https://git.mount-mockery.de/pylib/rspec.git diff --git a/__scripts__/.vscode/launch.json b/__scripts__/.vscode/launch.json new file mode 100644 index 0000000..6858fcf --- /dev/null +++ b/__scripts__/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Verwendet IntelliSense zum Ermitteln möglicher Attribute. + // Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen. + // Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Main File execution", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/unittest_status", + "console": "integratedTerminal", + "justMyCode": true + } + ] +} diff --git a/__scripts__/.vscode/settings.json b/__scripts__/.vscode/settings.json new file mode 100644 index 0000000..ee25f90 --- /dev/null +++ b/__scripts__/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "python.defaultInterpreterPath": "./venv/bin/python", + "autopep8.args": ["--max-line-length=150"], + "[python]": { + "python.formatting.provider": "none", + "editor.defaultFormatter": "ms-python.autopep8", + "editor.formatOnSave": true + }, + "editor.fontSize": 14, + "emmet.includeLanguages": { "django-html": "html" }, + "python.testing.pytestArgs": ["-v", "--cov", "--cov-report=xml", "__test__"], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} diff --git a/__scripts__/rspec b/__scripts__/rspec new file mode 160000 index 0000000..871ea52 --- /dev/null +++ b/__scripts__/rspec @@ -0,0 +1 @@ +Subproject commit 871ea528c0bc9e686a5c0fa4936a2ed715a5b54e diff --git a/__scripts__/unittest b/__scripts__/unittest index 874af7b..2739e4c 160000 --- a/__scripts__/unittest +++ b/__scripts__/unittest @@ -1 +1 @@ -Subproject commit 874af7b6427c53b4a9c729401febd1a0be0a47c8 +Subproject commit 2739e4ce18a94bb5bdea971edc21fd7dc9b10e3c diff --git a/__scripts__/unittest_status b/__scripts__/unittest_status index f14d193..ac08ee3 100755 --- a/__scripts__/unittest_status +++ b/__scripts__/unittest_status @@ -3,14 +3,14 @@ import os import sys -MY_PATH = os.path.abspath('.') -sys.path.insert(0, os.path.join(MY_PATH, 'report', 'pylibs')) import unittest import fstools +BASEPATH = os.path.abspath(os.path.dirname(__file__)) -module_pathes = fstools.dirlist(MY_PATH, rekursive=False) + +module_pathes = fstools.dirlist(os.path.join(BASEPATH, '..'), rekursive=False) module_pathes.sort() sys.stdout.write(unittest.module_status.module_status_head()) for module_path in module_pathes: