Browse Source

Various bugfixes

concerning unittest & field validators
Yann Weber 8 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
     #Late validation hook
253
     #Late validation hook
254
     @LodelHook('lodel2_dyncode_bootstraped')
254
     @LodelHook('lodel2_dyncode_bootstraped')
255
     def emfield_conf_check(hookname, caller, payload):
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
         classnames = { cls.__name__.lower():cls for cls in dyncode.dynclasses}
257
         classnames = { cls.__name__.lower():cls for cls in dyncode.dynclasses}
258
         if value[0].lower() not in classnames:
258
         if value[0].lower() not in classnames:
259
             msg = "Following dynamic class do not exists in current EM : %s"
259
             msg = "Following dynamic class do not exists in current EM : %s"

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

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

+ 1
- 1
runtest.sh View File

60
 	install_model_dir="$(dirname $0)/progs/slim/install_model/"
60
 	install_model_dir="$(dirname $0)/progs/slim/install_model/"
61
 fi
61
 fi
62
 rmdir $testdir
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
 cp -R examples $testdir
64
 cp -R examples $testdir
65
 cp -R tests $testdir
65
 cp -R tests $testdir
66
 cd $testdir
66
 cd $testdir

Loading…
Cancel
Save