From: Michael Wagner Date: Wed, 29 Jan 2025 15:43:56 +0000 (+0100) Subject: pydev-s6 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/SVBaL.git/commitdiff_plain/b6002604c369294f6d779323eaf25747e69f9327 pydev-s6 --- diff --git a/Test/.dummy b/Test/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/python/eh_util/eh_app/tests.py b/python/eh_util/eh_app/tests.py index 3e78879..ef849cd 100644 --- a/python/eh_util/eh_app/tests.py +++ b/python/eh_util/eh_app/tests.py @@ -14,13 +14,13 @@ class TestConfig(TestCase): class TestQModel(TestCase): def setUp(self): cf = config.getInstance("svbal") - cf.setConfig("DataFile", "/home/sparky2021/SVBaL/tmp/Export_20240417-1104.csv") + cf.setConfig("DataFile", "../../Test/etc/Export.csv") def test_allinstances(self): config.getInstance("svbal") from eh_app.qmodels import Mitglied mm = Mitglied.objects.all() - assert (len(mm) == 199) + assert (len(mm) == 4) gst = mm[0].VersicherteGrundstucke() assert (len(gst) == 1) for m in mm: diff --git a/python/eh_util/eh_util/settings.py b/python/eh_util/eh_util/settings.py index 3b1cd80..0517206 100644 --- a/python/eh_util/eh_util/settings.py +++ b/python/eh_util/eh_util/settings.py @@ -57,7 +57,7 @@ ROOT_URLCONF = 'eh_util.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': ["eh_util/templates"], + 'DIRS': ["eh_util/templates", "/opt/eh_util/eh_util/templates"], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [