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()
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()
def test_write_mysql_file(self): self.mysql_options() write_file_config(self.options, self.config_dir) self.check_written_file()
def test_write_sqlite_file(self): self.sqlite_options() write_file_config(self.options, self.config_dir) self.check_written_file()