cubicweb/test/data/libpython/cubicweb_mycube/ccplugin.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Mar 2017 10:34:39 +0200
branch3.25
changeset 12118 d7947c3c0eeb
permissions -rw-r--r--
[config] Test loading of ccplugin modules to ensure ccplugin modules of cube as package aren't loaded twice, once as `cubicweb_<cube>.ccplugin`, once as `cubes.<cube>.ccplugin`. This test used to fail until fe995d56c949 has been backout. It requires calling `cleanup_sys_module` in `CubicWebConfigurationTC.tearDown` to remove any cube's submodule loaded during tests, so content of `sys.modules` may be tested.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12118
d7947c3c0eeb [config] Test loading of ccplugin modules
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
# simply there to test ccplugin module autoloading