Ejemplo n.º 1
0
 def test_yaml_graph(self):
     """test create schema from yaml
        make a dotgraph
        output via query_builder"""
     query_builder = Schema(load_from_file("starting_db.yaml").tables)
     dot = DotGraph(file("z.dot","w"))
     query_builder.write_graph(dot)
Ejemplo n.º 2
0
 def test_dotgraph(self):
     """test DotGraph"""
     query_builder = Schema(load_from_file("starting_db.yaml").tables)
     output = StringIO()
     dot = DotGraph(output)
     query_builder.write_graph(dot)