def test_should_fail_with_missing_layer_id(self): with pytest.raises(ValueError): assert parse_set_value('input_path=/path/to/input')
def test_should_parse_int_value(self): assert parse_set_value('in.fps=30') == {'in': {'fps': 30}}
def test_should_fail_with_missing_value(self): with pytest.raises(ValueError): assert parse_set_value('in.input_path')
def test_should_parse_simple_expression(self): assert parse_set_value('in.input_path=/path/to/input') == { 'in': { 'input_path': '/path/to/input' } }