<commit_before>from ichnaea.tests.base import DBTestCase


class TestDatabase(DBTestCase):

    def test_constructors(self):
        self.assertEqual(self.db_master.engine.name, 'mysql')
        self.assertEqual(self.db_slave.engine.name, 'mysql')

    def test_sessions(self):
        self.assertTrue(
            self.db_master_session.bind.engine is self.db_master.engine)
        self.assertTrue(
            self.db_slave_session.bind.engine is self.db_slave.engine)

    def test_table_creation(self):
        session = self.db_master_session
        result = session.execute('select * from cell;')
        self.assertTrue(result.first() is None)
        result = session.execute('select * from measure;')
        self.assertTrue(result.first() is None)
<commit_msg>Overlooked one more measure reference.<commit_after>from ichnaea.tests.base import DBTestCase


class TestDatabase(DBTestCase):

    def test_constructors(self):
        self.assertEqual(self.db_master.engine.name, 'mysql')
        self.assertEqual(self.db_slave.engine.name, 'mysql')

    def test_sessions(self):
        self.assertTrue(
            self.db_master_session.bind.engine is self.db_master.engine)
        self.assertTrue(
            self.db_slave_session.bind.engine is self.db_slave.engine)

    def test_table_creation(self):
        session = self.db_master_session
        result = session.execute('select * from cell;')
        self.assertTrue(result.first() is None)

{'fraction_non_alphanumeric': 0.10191518467852258, 'fraction_numerical': 0.0, 'mean_word_length': 3.15625, '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': '1273967', 'n_tokens_mistral': 428, 'n_tokens_neox': 424, 'n_words': 77}