don't display warning in mandatory_warnings
[tiramisu.git] / test / test_option_calculation.py
index 9da8103..d4fa050 100644 (file)
@@ -477,7 +477,7 @@ def test_callback_master_and_slaves_master4():
     cfg.read_write()
     cfg.cfgimpl_get_settings().append('expert')
     cfg.cfgimpl_get_settings().setpermissive(('expert',))
-    assert list(cfg.cfgimpl_get_values().mandatory_warnings(force_permissive=True)) == []
+    assert list(cfg.cfgimpl_get_values().mandatory_warnings()) == []
 
 
 def test_consistency_master_and_slaves_master_mandatory_transitive():
@@ -498,7 +498,7 @@ def test_consistency_master_and_slaves_master_mandatory_transitive():
     cfg.read_write()
     raises(PropertiesOptionError, "cfg.val1.val1")
     raises(PropertiesOptionError, "cfg.val3.val3")
-    assert list(cfg.cfgimpl_get_values().mandatory_warnings(force_permissive=True)) == []
+    assert list(cfg.cfgimpl_get_values().mandatory_warnings()) == []
 
 
 def test_consistency_master_and_slaves_master_mandatory_non_transitive():
@@ -517,7 +517,7 @@ def test_consistency_master_and_slaves_master_mandatory_non_transitive():
     maconfig = OptionDescription('rootconfig', '', [interface1, interface2])
     cfg = Config(maconfig)
     cfg.read_write()
-    assert list(cfg.cfgimpl_get_values().mandatory_warnings(force_permissive=True)) == ["val1.val1"]
+    assert list(cfg.cfgimpl_get_values().mandatory_warnings()) == ["val1.val1"]
 
 
 def test_callback_master_and_slaves_master_list():