tests are passing again after package renaming
This commit is contained in:
parent
a871cab083
commit
45ff59aea2
|
@ -8,7 +8,7 @@ from os.path import dirname, abspath, join, normpath
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
HERE = dirname(abspath(__file__))
|
HERE = dirname(abspath(__file__))
|
||||||
PATH = normpath(join(HERE, '..', 'src'))
|
PATH = normpath(join(HERE, '..', 'tiramisu'))
|
||||||
if PATH not in sys.path:
|
if PATH not in sys.path:
|
||||||
sys.path.insert(1, PATH)
|
sys.path.insert(1, PATH)
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
import autopath
|
import autopath
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
|
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
import autopath
|
import autopath
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
|
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#just a proof of concept with a lot of options and option groups
|
#just a proof of concept with a lot of options and option groups
|
||||||
import autopath
|
import autopath
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
all_modules = ['amon', 'sphynx', 'zephir']
|
all_modules = ['amon', 'sphynx', 'zephir']
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import autopath
|
import autopath
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
|
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
import autopath
|
import autopath
|
||||||
|
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
from error import MandatoryError
|
from tiramisu.error import MandatoryError
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import autopath
|
import autopath
|
||||||
|
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
from error import SpecialOwnersError
|
from tiramisu.error import SpecialOwnersError
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
import autopath
|
import autopath
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
|
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
from error import *
|
from tiramisu.error import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
import autopath
|
import autopath
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
|
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
import autopath
|
import autopath
|
||||||
from py.test import raises
|
from py.test import raises
|
||||||
|
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
import autopath
|
import autopath
|
||||||
from config import *
|
from tiramisu.config import *
|
||||||
from option import *
|
from tiramisu.option import *
|
||||||
|
|
||||||
def make_description():
|
def make_description():
|
||||||
numero_etab = StrOption('numero_etab', "identifiant de l'établissement")
|
numero_etab = StrOption('numero_etab', "identifiant de l'établissement")
|
||||||
|
|
|
@ -231,9 +231,9 @@ class Option(HiddenBaseType, DisabledBaseType, ModeBaseType):
|
||||||
class ChoiceOption(Option):
|
class ChoiceOption(Option):
|
||||||
opt_type = 'string'
|
opt_type = 'string'
|
||||||
|
|
||||||
def __init__(self, name, doc, values, open_values=False, default=None,
|
def __init__(self, name, doc, values, default=None,
|
||||||
requires=None, callback=None, callback_params=None,
|
requires=None, callback=None, callback_params=None,
|
||||||
multi=False, mandatory=False):
|
multi=False, mandatory=False, open_values=False):
|
||||||
self.values = values
|
self.values = values
|
||||||
if open_values not in [True, False]:
|
if open_values not in [True, False]:
|
||||||
raise ConfigError('Open_values must be a boolean for '
|
raise ConfigError('Open_values must be a boolean for '
|
||||||
|
|
Loading…
Reference in New Issue