def test_suffix_input(tmpdir): p82 = Proc() p82.input = 'a' p82.input = [1] sigs = OBox() sigs.argv0 = str(Path(sys.argv[0]).resolve()) sigs.id = 'p82' sigs.tag = 'notag' assert p82.config.input == {'a': [1]} sigs.input = {'a': "[1]"} assert p82.suffix == uid(sigs.to_json())
def test_suffix_compute(tmpdir): p76 = Proc() p81 = Proc() p81.depends = p76 p81.input = 'a' sigs = OBox() sigs.argv0 = str(Path(sys.argv[0]).resolve()) sigs.id = 'p81' sigs.tag = 'notag' sigs.input = 'a' sigs.depends = ['p76#' + p76.suffix] assert p81.suffix == uid(sigs.to_json())