|
@@ -150,20 +150,23 @@ def get_article():
|
|
|
|
|
|
def get_transportation():
|
|
|
return finoex.Transportation(
|
|
|
- name = u'ticket',
|
|
|
- price_brutto = get_sum_a(),
|
|
|
- departure_point = u'home',
|
|
|
- destination_point = u'city',
|
|
|
- distance = finoex.Distance(3.21, u'km'),
|
|
|
- passenger = get_person_a(),
|
|
|
- valid_from = datetime.datetime(2016, 7, 14, 13, 50, 4, 0, tzinfo = pytz.timezone('Europe/Vienna')),
|
|
|
- valid_until = datetime.datetime(2016, 7, 14, 18, 50, 4, 0, tzinfo = pytz.utc),
|
|
|
- ticket_url = u'https://www.example.com',
|
|
|
- estimated_arrival_time = ioex.datetimeex.Period(
|
|
|
- start = pytz.timezone('Europe/Vienna').localize(datetime.datetime(2016, 7, 24, 23, 47, 2)),
|
|
|
- end = pytz.utc.localize(datetime.datetime(2016, 7, 24, 23, 48, 5)),
|
|
|
- ),
|
|
|
- )
|
|
|
+ name = u'ticket',
|
|
|
+ price_brutto = get_sum_a(),
|
|
|
+ departure_point = u'home',
|
|
|
+ destination_point = u'city',
|
|
|
+ distance = finoex.Distance(3.21, u'km'),
|
|
|
+ passenger = get_person_a(),
|
|
|
+ valid_from = datetime.datetime(2016, 7, 14, 13, 50, 4, 0, tzinfo = pytz.timezone('Europe/Vienna')),
|
|
|
+ valid_until = datetime.datetime(2016, 7, 14, 18, 50, 4, 0, tzinfo = pytz.utc),
|
|
|
+ ticket_url = u'https://www.example.com',
|
|
|
+ estimated_arrival_time = ioex.datetimeex.Period(
|
|
|
+ start = pytz.timezone('Europe/Vienna').localize(datetime.datetime(2016, 7, 24, 23, 47, 2)),
|
|
|
+ end = pytz.utc.localize(datetime.datetime(2016, 7, 24, 23, 48, 5)),
|
|
|
+ ),
|
|
|
+ arrival_time = pytz.timezone('Europe/Vienna').localize(
|
|
|
+ datetime.datetime(2016, 7, 24, 23, 47, 35)
|
|
|
+ ),
|
|
|
+ )
|
|
|
|
|
|
|
|
|
def get_shipping():
|
|
@@ -416,6 +419,7 @@ state: goood
|
|
|
width: !distance '1.23 m'
|
|
|
"""],
|
|
|
[get_transportation(), u"""!transportation
|
|
|
+arrival_time: 2016-07-24 23:47:35+02:00
|
|
|
departure_point: home
|
|
|
destination_point: city
|
|
|
distance: !distance '3.21 km'
|
|
@@ -559,6 +563,7 @@ reward: product
|
|
|
first_name: 名字
|
|
|
last_name: 贵姓"""],
|
|
|
[get_transportation(), u"""!transportation
|
|
|
+arrival_time: 2016-07-24 23:47:35+02:00
|
|
|
departure_point: home
|
|
|
destination_point: city
|
|
|
distance: !distance '3.21 km'
|