~homeworkprod/byceps

a01287fe8d6ea134c169b3affb51742ac048eb1f — Jochen Kupperschmidt 3 years ago b0d9492
Adjust to removal of `Party.to_tuple()`
2 files changed, 3 insertions(+), 2 deletions(-)

M byceps/blueprints/party/views.py
M tests/base.py
M byceps/blueprints/party/views.py => byceps/blueprints/party/views.py +1 -1
@@ 38,7 38,7 @@ def info():
    party = party_service.find_party(g.party_id)

    return {
        'party': party.to_tuple(),
        'party': party,
    }



M tests/base.py => tests/base.py +2 -1
@@ 18,6 18,7 @@ from byceps.application import create_app
from byceps.database import db
from byceps.services.authentication.session.models import SessionToken
from byceps.services.email.models import EmailConfig
from byceps.services.party import service as party_service

from testfixtures.authentication import create_session_token
from testfixtures.brand import create_brand


@@ 99,7 100,7 @@ class AbstractAppTestCase(TestCase):
        db.session.add(party)
        db.session.commit()

        return party.to_tuple()
        return party_service._db_entity_to_party(party)

    def set_brand_email_sender_address(self, brand_id, sender_address):
        email_config = EmailConfig(brand_id, sender_address)