Ejemplo n.º 1
0
 def do_make_db(self, line):
     if self.write_folder is None:
         print(
             "Please enter the directory to write files to : write_folder xxxx"
         )
     elif self.source_file is None:
         print("Please enter the source file : source xxxx")
     else:
         uml_db = Interpreter()
         uml_db.add_file(self.source_file, self.write_folder)
         self.db = uml_db.create_db()
Ejemplo n.º 2
0
 def test_12(self):
     x = Interpreter()
     x.add_file(self.file, "new_module")
     x.create_db()
     assert x.my_db