Use short phone format in test scenario
As phonenumbers is not a dependency for the tests, we must use a short format to not exceed the 20 characters limit.
This commit is contained in:
+2
-2
@@ -85,7 +85,7 @@ Create parties::
|
|||||||
>>> customer_address.save()
|
>>> customer_address.save()
|
||||||
>>> customer_phone = customer.contact_mechanisms.new()
|
>>> customer_phone = customer.contact_mechanisms.new()
|
||||||
>>> customer_phone.type = 'phone'
|
>>> customer_phone.type = 'phone'
|
||||||
>>> customer_phone.value = '+33 93 842 8862'
|
>>> customer_phone.value = '+33938428862'
|
||||||
>>> customer_phone.save()
|
>>> customer_phone.save()
|
||||||
|
|
||||||
Set the warehouse address::
|
Set the warehouse address::
|
||||||
@@ -100,7 +100,7 @@ Set the warehouse address::
|
|||||||
>>> company_address.save()
|
>>> company_address.save()
|
||||||
>>> company_phone = company.party.contact_mechanisms.new()
|
>>> company_phone = company.party.contact_mechanisms.new()
|
||||||
>>> company_phone.type = 'phone'
|
>>> company_phone.type = 'phone'
|
||||||
>>> company_phone.value = '+32 4 2522122'
|
>>> company_phone.value = '+3242522122'
|
||||||
>>> company_phone.save()
|
>>> company_phone.save()
|
||||||
>>> warehouse.address = company_address
|
>>> warehouse.address = company_address
|
||||||
>>> warehouse.save()
|
>>> warehouse.save()
|
||||||
|
|||||||
+2
-2
@@ -72,7 +72,7 @@ Create parties::
|
|||||||
>>> customer_address.country = switzerland
|
>>> customer_address.country = switzerland
|
||||||
>>> customer_phone = customer.contact_mechanisms.new()
|
>>> customer_phone = customer.contact_mechanisms.new()
|
||||||
>>> customer_phone.type = 'phone'
|
>>> customer_phone.type = 'phone'
|
||||||
>>> customer_phone.value = "+(41) (041) 410-62-66"
|
>>> customer_phone.value = "+41414106266"
|
||||||
>>> customer.save()
|
>>> customer.save()
|
||||||
|
|
||||||
>>> agent_party = Party(name="Agent")
|
>>> agent_party = Party(name="Agent")
|
||||||
@@ -101,7 +101,7 @@ Set the warehouse address::
|
|||||||
>>> company_address.save()
|
>>> company_address.save()
|
||||||
>>> company_phone = company.party.contact_mechanisms.new()
|
>>> company_phone = company.party.contact_mechanisms.new()
|
||||||
>>> company_phone.type = 'phone'
|
>>> company_phone.type = 'phone'
|
||||||
>>> company_phone.value = '+32 4 2522122'
|
>>> company_phone.value = '+3242522122'
|
||||||
>>> company_phone.save()
|
>>> company_phone.save()
|
||||||
>>> warehouse.address = company_address
|
>>> warehouse.address = company_address
|
||||||
>>> warehouse.save()
|
>>> warehouse.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user