<commit_before>import unittest
import transaction

from pyramid import testing


import pytest
from expense_tracker.models import (
    Moodbot,
    get_tm_session,
)
from mood_bot.models.meta import Moodbot


@pytest.fixture(scope="session")
def configuration(request):
    """Set up a Configurator instance.

    This Configurator instance sets up a pointer to the location of the
        database.
    It also includes the models from your app's model package.
    Finally it tears everything down, including the in-memory SQLite database.

    This configuration will persist for the entire duration of your PyTest run.
    """
    config = testing.setUp(settings={
        'sqlalchemy.url': 'postgres:///test_moodbot'
    })
    config.include("mood_bot.models")

    def teardown():
        testing.tearDown()

    request.addfinalizer(teardown)
    return config<commit_msg>Got rid of an error.<commit_after>import unittest
import transaction

from pyramid import testing


import pytest
from mood_bot.models import (
    Moodbot,
    get_tm_session,
)
from mood_bot.models.meta import Moodbot


@pytest.fixture(scope="session")
def configuration(request):
    """Set up a Configurator instance.

    This Configurator instance sets up a pointer to the location of the
        database.
    It also includes the models from your app's model package.
    Finally it tears everything down, including the in-memory SQLite database.

    This configuration will persist for the entire duration of your PyTest run.
    """
    config = testing.setUp(settings={
        'sqlalchemy.url': 'postgres:///test_moodbot'
    })
    config.include("mood_bot.models")

    def teardown():
        testing.tearDown()

    request.addfinalizer(teardown)
    return config
{'fraction_non_alphanumeric': 0.07548240635641316, 'fraction_numerical': 0.0, 'mean_word_length': 3.452020202020202, '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': '6582115', 'n_tokens_mistral': 511, 'n_tokens_neox': 489, 'n_words': 169}