Code Duplication    Length = 10-10 lines in 2 locations

tests/integration/services/shop/order/email/test_email_on_order_paid.py 1 location

@@ 50-59 (lines=10) @@
47
    )
48
49
50
@pytest.fixture
51
def order(storefront, customer, email_footer_snippet_id):
52
    created_at = datetime(2014, 9, 23, 18, 40, 53)
53
54
    order = place_order_with_items(storefront.id, customer, created_at, [])
55
56
    yield order
57
58
    snippet_service.delete_snippet(email_footer_snippet_id)
59
    order_service.delete_order(order.id)
60
61
62
@patch('byceps.email.send')

tests/integration/services/shop/order/email/test_email_on_order_canceled.py 1 location

@@ 50-59 (lines=10) @@
47
    )
48
49
50
@pytest.fixture
51
def order(storefront, customer, email_footer_snippet_id):
52
    created_at = datetime(2014, 11, 5, 23, 32, 9)
53
54
    order = place_order_with_items(storefront.id, customer, created_at, [])
55
56
    yield order
57
58
    snippet_service.delete_snippet(email_footer_snippet_id)
59
    order_service.delete_order(order.id)
60
61
62
@patch('byceps.email.send')