• Alain Takoudjou's avatar
    grid.promise: add support for promise without test or anomaly · 1dba7a89
    Alain Takoudjou authored
    Support for promise test-less or anomaly-less allow to disable either the test phase or the anomaly phase.
    
    by default, test and anomaly are enabled. Test will run when buildout is processing the computer partition, and anomaly when the partition is processed.
    
    Call `self.setTestLess()` in __init__.py of the promise will disable Test and set `__is_tested = False`. Call `self.setAnomalyLess()` will rather disable Anomaly and set `__is_anomaly_detected = False`.
    
    If the promise is test less, then slapgrid will not run the promise while processing the partition which mean that the promise will not report error, only Anomaly will be checked. Samething, if promise is anomaly less, only test will run when slapgrid is processing the partition.
    1dba7a89
generic.py 16.7 KB