Ejemplo n.º 1
0
 def parse_spec_and_assert(self, spec, parents, children, filter_type, filter_value, childrens_parents):
     parsed = graph_selector.SelectionCriteria(spec)
     self.assertEqual(parsed.select_parents, parents)
     self.assertEqual(parsed.select_children, children)
     self.assertEqual(parsed.selector_type, filter_type)
     self.assertEqual(parsed.selector_value, filter_value)
     self.assertEqual(parsed.select_childrens_parents, childrens_parents)
Ejemplo n.º 2
0
 def invalid_spec(self, spec):
     with self.assertRaises(dbt.exceptions.RuntimeException):
         graph_selector.SelectionCriteria(spec)