Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Test that empty order note is note being created

akjanik5c45439abe7d
diff --git a/tests/test_checkout.py b/tests/test_checkout.py
index b7024b50c0..235347d805 100644
--- a/tests/test_checkout.py
+++ b/tests/test_checkout.py
@@ -242,6 +242,9 @@ def test_note_form(note_value):
def test_note_in_created_order(request_cart, customer_user, billing_address):
customer_user.default_billing_address = billing_address
checkout = Checkout(request_cart, customer_user, 'tracking_code')
+ checkout.note = ''
+ order = checkout.create_order()
+ assert not order.notes.all()
checkout.note = 'test_note'
order = checkout.create_order()
assert order.notes.values()[0].get('content') == 'test_note'