Commit ea9299bd authored by Davide Fazzini's avatar Davide Fazzini
Browse files

Move test from DaVinciSys to Phys/DaVinci

parent 3c1eb55a
Pipeline #3499928 failed with stages
in 38 seconds
......@@ -105,22 +105,3 @@ def test_create_options_templates():
os.remove('test_inputdb_template.yaml')
os.remove('test_jobopt_template.yaml')
def test_dv_option_list():
"""
Check for any difference between the options available in ApplicationOptions in PyConf and the DV options.
"""
from PyConf.application import ApplicationOptions
from DaVinci import options
from DaVinci.options_default import __optsDict__ as dv_defaults
lhcb_options = ApplicationOptions.getDefaultProperties()
dv_options = options.getDefaultProperties()
for name, _ in lhcb_options.items():
# Exclude Moore-specific options since they will be moved into a
# dedicated Moore-specific ApplicationOptions class.
if name not in ["lines_maker", "tck"]:
assert name in dv_options, f"Option {name} not available in DaVinci"
assert name in dv_defaults, f"Option {name} doesn't have a default value in DaVinci"
......@@ -31,3 +31,22 @@ def test_option_get_after_set():
def test_option_unknown():
with pytest.raises(AttributeError):
print(options.unknown)
def test_dv_option_list():
"""
Check for any difference between the options available in ApplicationOptions in PyConf and the DV options.
"""
from PyConf.application import ApplicationOptions
from DaVinci import options
from DaVinci.options_default import __optsDict__ as dv_defaults
lhcb_options = ApplicationOptions.getDefaultProperties()
dv_options = options.getDefaultProperties()
for name, _ in lhcb_options.items():
# Exclude Moore-specific options since they will be moved into a
# dedicated Moore-specific ApplicationOptions class.
if name not in ["lines_maker", "tck"]:
assert name in dv_options, f"Option {name} not available in DaVinci"
assert name in dv_defaults, f"Option {name} doesn't have a default value in DaVinci"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment