Adjust strings in tests

This commit is contained in:
Raphael Michel
2019-10-29 09:41:33 +01:00
parent 20a6decb3a
commit df2c9bdce5

View File

@@ -421,9 +421,9 @@ class WidgetCartTest(CartTestMixin, TestCase):
assert data == {
'list_type': 'list',
'events': [
{'name': 'Present', 'date_range': 'Jan. 1, 2019 11:00', 'availability': {'color': 'green', 'text': 'Tickets on sale'},
{'name': 'Present', 'date_range': 'Jan. 1, 2019 11:00', 'availability': {'color': 'green', 'text': 'Book now'},
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk, 'location': ''},
{'name': 'Future', 'date_range': 'Jan. 4, 2019 11:00', 'availability': {'color': 'green', 'text': 'Tickets on sale'},
{'name': 'Future', 'date_range': 'Jan. 4, 2019 11:00', 'availability': {'color': 'green', 'text': 'Book now'},
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk, 'location': ''}
]
}
@@ -452,14 +452,14 @@ class WidgetCartTest(CartTestMixin, TestCase):
{'day': 1, 'date': '2019-01-01', 'events': [
{'name': 'Present', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 1, 2019 11:00',
'location': '',
'availability': {'color': 'green', 'text': 'Tickets on sale'},
'availability': {'color': 'green', 'text': 'Book now'},
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk}]},
{'day': 2, 'date': '2019-01-02', 'events': []},
{'day': 3, 'date': '2019-01-03', 'events': []},
{'day': 4, 'date': '2019-01-04', 'events': [
{'name': 'Future', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 4, 2019 11:00',
'location': '',
'availability': {'color': 'green', 'text': 'Tickets on sale'},
'availability': {'color': 'green', 'text': 'Book now'},
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk}]},
{'day': 5, 'date': '2019-01-05', 'events': []},
{'day': 6, 'date': '2019-01-06', 'events': []}
@@ -528,12 +528,12 @@ class WidgetCartTest(CartTestMixin, TestCase):
'event_url': 'http://example.com/ccc/30c3/',
'location': '',
'name': '30C3'},
{'availability': {'color': 'green', 'text': 'Tickets on sale'},
{'availability': {'color': 'green', 'text': 'Book now'},
'date_range': 'Jan. 1, 2019 10:00',
'location': '',
'event_url': 'http://example.com/ccc/present/',
'name': 'Present'},
{'availability': {'color': 'green', 'text': 'Tickets on sale'},
{'availability': {'color': 'green', 'text': 'Book now'},
'date_range': 'Jan. 4, 2019 10:00',
'location': '',
'event_url': 'http://example.com/ccc/future/',
@@ -570,7 +570,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
{'date': '2019-01-01',
'day': 1,
'events': [{'availability': {'color': 'green',
'text': 'Tickets on sale'},
'text': 'Book now'},
'continued': False,
'date_range': 'Jan. 1, 2019 10:00',
'event_url': 'http://example.com/ccc/present/',
@@ -579,7 +579,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
'subevent': None,
'time': '10:00'},
{'availability': {'color': 'green',
'text': 'Tickets on sale'},
'text': 'Book now'},
'continued': False,
'date_range': 'Jan. 1, 2019 11:00',
'event_url': 'http://example.com/ccc/30c3/',
@@ -592,7 +592,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
{'date': '2019-01-04',
'day': 4,
'events': [{'availability': {'color': 'green',
'text': 'Tickets on sale'},
'text': 'Book now'},
'continued': False,
'date_range': 'Jan. 4, 2019 10:00',
'event_url': 'http://example.com/ccc/future/',
@@ -601,7 +601,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
'subevent': None,
'time': '10:00'},
{'availability': {'color': 'green',
'text': 'Tickets on sale'},
'text': 'Book now'},
'continued': False,
'date_range': 'Jan. 4, 2019 11:00',
'event_url': 'http://example.com/ccc/30c3/',