Exemplo n.º 1
0
 def test_should_fail_with_missing_layer_id(self):
     with pytest.raises(ValueError):
         assert parse_set_value('input_path=/path/to/input')
Exemplo n.º 2
0
 def test_should_parse_int_value(self):
     assert parse_set_value('in.fps=30') == {'in': {'fps': 30}}
Exemplo n.º 3
0
 def test_should_fail_with_missing_value(self):
     with pytest.raises(ValueError):
         assert parse_set_value('in.input_path')
Exemplo n.º 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'
         }
     }