Browse Source

Various bugfixes

concerning unittest & field validators
Yann Weber 7 years ago
parent
commit
4b3ebcabe8
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      lodel/settings/validator.py
  2. 1
    1
      progs/slim/install_model/loader.py
  3. 1
    1
      runtest.sh

+ 1
- 1
lodel/settings/validator.py View File

@@ -253,7 +253,7 @@ def emfield_val(value):
253 253
     #Late validation hook
254 254
     @LodelHook('lodel2_dyncode_bootstraped')
255 255
     def emfield_conf_check(hookname, caller, payload):
256
-        import eapi_dyncode as dyncode # <-- dirty & quick
256
+        import leapi_dyncode as dyncode # <-- dirty & quick
257 257
         classnames = { cls.__name__.lower():cls for cls in dyncode.dynclasses}
258 258
         if value[0].lower() not in classnames:
259 259
             msg = "Following dynamic class do not exists in current EM : %s"

+ 1
- 1
progs/slim/install_model/loader.py View File

@@ -10,7 +10,7 @@ import sys, os, os.path
10 10
 #
11 11
 # Bootstraping
12 12
 #
13
-LODEL2_LIB_ABS_PATH = None
13
+LODEL2_LIB_ABS_PATH = '/home/yannweb/dev/lodel2/lodel2-git'
14 14
 if LODEL2_LIB_ABS_PATH is not None:
15 15
     if not os.path.isdir(LODEL2_LIB_ABS_PATH):
16 16
         print("FATAL ERROR : the LODEL2_LIB_ABS_PATH variable in loader.py is \

+ 1
- 1
runtest.sh View File

@@ -60,7 +60,7 @@ then
60 60
 	install_model_dir="$(dirname $0)/progs/slim/install_model/"
61 61
 fi
62 62
 rmdir $testdir
63
-./progs/create_instance test_instance $testdir "$install_model_dir" ./examples/em_test.pickle $(dirname $0)
63
+./progs/create_instance test_instance $testdir "$install_model_dir" ./examples/em_test.pickle "$(dirname $0)/lodel"
64 64
 cp -R examples $testdir
65 65
 cp -R tests $testdir
66 66
 cd $testdir

Loading…
Cancel
Save