~homeworkprod/byceps

2b1a56eb2938a888aeb4126caf4ee9a557d605f7 — Jochen Kupperschmidt 3 months ago 5d61db8
Give non-default names to test sites
M tests/integration/blueprints/site/shop/order/test_views.py => tests/integration/blueprints/site/shop/order/test_views.py +1 -1
@@ 72,7 72,7 @@ def storefront(shop, order_number_sequence_id) -> None:

@pytest.fixture
def site(storefront):
    site = create_site(storefront_id=storefront.id)
    site = create_site('acmecon-2014-website', storefront_id=storefront.id)
    yield site
    site_service.delete_site(site.id)


M tests/integration/blueprints/site/shop/orders/test_views.py => tests/integration/blueprints/site/shop/orders/test_views.py +2 -2
@@ 95,14 95,14 @@ def storefront2(shop2, order_number_sequence_id2) -> None:

@pytest.fixture
def site1(storefront1):
    site = create_site(storefront_id=storefront1.id)
    site = create_site(site_id='site1', storefront_id=storefront1.id)
    yield site
    site_service.delete_site(site.id)


@pytest.fixture
def site2(storefront2):
    site = create_site(storefront_id=storefront2.id)
    site = create_site(site_id='site2', storefront_id=storefront2.id)
    yield site
    site_service.delete_site(site.id)