Ejemplo n.º 1
0
 def test_write_file_no_config_dir(self):
     with mock.patch.dict("os.environ", {"HOME": "."}, clear=True):
         self.mysql_options()
         write_file_config(self.options)
         self.check_written_file()
Ejemplo n.º 2
0
 def test_write_file_no_config_dir(self):
     with mock.patch.dict('os.environ', {"HOME": '.'}, clear=True):
         self.sqlite_options()
         write_file_config(self.options)
         self.check_written_file()
Ejemplo n.º 3
0
 def test_write_mysql_file(self):
     self.mysql_options()
     write_file_config(self.options, self.config_dir)
     self.check_written_file()
Ejemplo n.º 4
0
 def test_write_sqlite_file(self):
     self.sqlite_options()
     write_file_config(self.options, self.config_dir)
     self.check_written_file()