<commit_before>"""
:Copyright: 2006-2020 <NAME>
:License: Modified BSD, see LICENSE for details.
"""

import pytest

from byceps.services.site import settings_service as site_settings_service


from ...helpers import (
    assign_permissions_to_user,
    create_brand,
    create_site,
    login_user,
)

from .helpers import create_board, create_category, create_posting, create_topic


@pytest.fixture
def board(make_email_config):
    make_email_config()
    site = create_site()

    brand = create_brand()
    board = create_board(brand.id)

    site_settings_service.create_setting(site.id, 'board_id', board.id)

    return board


@pytest.fixture<commit_msg>Extract site and brand fixtures for board tests<commit_after>"""
:Copyright: 2006-2020 <NAME>
:License: Modified BSD, see LICENSE for details.
"""

import pytest

from byceps.services.site import settings_service as site_settings_service


from ...helpers import (
    assign_permissions_to_user,
    create_brand,
    create_site,
    login_user,
)

from .helpers import create_board, create_category, create_posting, create_topic


@pytest.fixture
def site(make_email_config):
    email_config = make_email_config()
    return create_site(email_config_id=email_config.id)


@pytest.fixture
def brand():
    return create_brand()


@pytest.fixture
def board(site, brand):
    board = create_board(brand.id)

    site_settings_service.create_setting(site.id, 'board_id', board.id)

    return board


@pytest.fixture
{'fraction_non_alphanumeric': 0.09041835357624832, 'fraction_numerical': 0.010796221322537112, 'mean_word_length': 4.681992337164751, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6796342', 'n_tokens_mistral': 498, 'n_tokens_neox': 480, 'n_words': 112}