~homeworkprod/byceps

bcd9f0f8c7554a9f1388c486bd9648fbaf970516 — Jochen Kupperschmidt 1 year, 1 month ago d099ffa
Find order XML export fixture file indepedent of working directory
1 files changed, 2 insertions(+), 2 deletions(-)

M tests/integration/blueprints/admin/shop/order/test_order_export.py
M tests/integration/blueprints/admin/shop/order/test_order_export.py => tests/integration/blueprints/admin/shop/order/test_order_export.py +2 -2
@@ 162,8 162,8 @@ def order(storefront, cart, orderer):


@freeze_time('2015-04-15 07:54:18')  # UTC
def test_serialize_existing_order(admin_app, order, admin_user):
    filename = 'tests/integration/blueprints/admin/shop/order/order_export.xml'
def test_serialize_existing_order(request, admin_app, order, admin_user):
    filename = str(request.fspath.dirpath('order_export.xml'))
    with codecs.open(filename, encoding='iso-8859-1') as f:
        expected = f.read().rstrip()