~homeworkprod/byceps

63f26ad591fac76b7630757fb1b549376b521874 — Jochen Kupperschmidt 2 years ago a8eead0
Align brand and party test data
M config/test_party.py => config/test_party.py +3 -3
@@ 13,9 13,9 @@ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://byceps_test:test@127.0.0.1/byce
REDIS_URL = 'redis://127.0.0.1:6379/0'

SITE_MODE = 'public'
SITE_ID = 'acme-2014-website'
BRAND = 'acme'
PARTY = 'acme-2014'
SITE_ID = 'acmecon-2014-website'
BRAND = 'acmecon'
PARTY = 'acmecon-2014'

PATH_DATA = Path('./data')
PATH_GLOBAL = PATH_DATA / 'global'

M testfixtures/brand.py => testfixtures/brand.py +1 -1
@@ 9,5 9,5 @@ testfixtures.brand
from byceps.services.brand.models.brand import Brand


def create_brand(*, id='acme', title='Acme Entertainment Convention'):
def create_brand(*, id='acmecon', title='Acme Entertainment Convention'):
    return Brand(id, title)

M testfixtures/party.py => testfixtures/party.py +1 -1
@@ 13,7 13,7 @@ from byceps.services.party.models.party import Party
from .brand import create_brand


def create_party(*, id='acme-2014', brand_id=None,
def create_party(*, id='acmecon-2014', brand_id=None,
                 title='Acme Entertainment Convention 2014'):
    if brand_id is None:
        brand = create_brand()

M tests/blueprints/board/topic_moderation_base.py => tests/blueprints/board/topic_moderation_base.py +1 -1
@@ 28,7 28,7 @@ class AbstractTopicModerationTest(AbstractAppTestCase):
        self.board = self.create_board()

        site_settings_service \
            .create_setting('acme-2014-website', 'board_id', self.board.id)
            .create_setting('acmecon-2014-website', 'board_id', self.board.id)

    # -------------------------------------------------------------------- #
    # helpers

M tests/helpers.py => tests/helpers.py +1 -1
@@ 112,5 112,5 @@ def create_party(brand_id, party_id='acmecon-2017', title='ACMECon 2017'):
    return party_service._db_entity_to_party(party)


def create_site(party_id, *, site_id='acme-2014-website', title='Website'):
def create_site(party_id, *, site_id='acmecon-2014-website', title='Website'):
    return site_service.create_site(site_id, party_id, title)