<commit_before>import unittest
from igf_data.utils.dbutils import read_dbconf_json, clean_and_rebuild_database

class Dbutils_test1(unittest.TestCase):
  def setUp(self):
    self.dbconfig='data/incorrect_dbconfig.json'
  
  def test_read_dbconf_json(self):
    with self.assertRaises(ValueError):
      read_dbconf_json(dbconfig=self.dbconfig)
    

if __name__ == '__main__':
  unittest.main()<commit_msg>unittest for checking sqlalchemy operation<commit_after>import unittest, sqlalchemy
from igf_data.utils.dbutils import read_dbconf_json, clean_and_rebuild_database

class Dbutils_test1(unittest.TestCase):
  def setUp(self):
    self.dbconfig='data/incorrect_dbconfig.json'
  
  def test_read_dbconf_json(self):
    with self.assertRaises(ValueError):
      read_dbconf_json(dbconfig=self.dbconfig)
    
class Dbutils_test2(unittest.TestCase):
  def setUp(self):
    self.dbconfig='data/incorrect_dbconfig2.json'

  def test_clean_and_rebuild_database(self):
    with self.assertRaises(sqlalchemy.exc.OperationalError):
      clean_and_rebuild_database(dbconfig=self.dbconfig)

if __name__ == '__main__':
  unittest.main()
{'fraction_non_alphanumeric': 0.09131205673758866, 'fraction_numerical': 0.0035460992907801418, 'mean_word_length': 5.92638036809816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6471344', 'n_tokens_mistral': 401, 'n_tokens_neox': 398, 'n_words': 56}