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