mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Add unit test mechanism (#254)
This commit is contained in:
parent
45e85fef82
commit
8486f440fb
2 changed files with 16 additions and 0 deletions
0
src/yunohost/tests/__init__.py
Normal file
0
src/yunohost/tests/__init__.py
Normal file
16
src/yunohost/tests/conftest.py
Normal file
16
src/yunohost/tests/conftest.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import sys
|
||||
import moulinette
|
||||
|
||||
sys.path.append("..")
|
||||
|
||||
old_init = moulinette.core.Moulinette18n.__init__
|
||||
|
||||
|
||||
def monkey_path_i18n_init(self, package, default_locale="en"):
|
||||
old_init(self, package, default_locale)
|
||||
self.load_namespace("yunohost")
|
||||
|
||||
|
||||
moulinette.core.Moulinette18n.__init__ = monkey_path_i18n_init
|
||||
|
||||
moulinette.init()
|
Loading…
Add table
Reference in a new issue