forked from CGM_Public/pretix_original
Adjust tests broken by 0a55fdbc4
This commit is contained in:
@@ -494,9 +494,9 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
'list_type': 'list',
|
'list_type': 'list',
|
||||||
'poweredby': '<a href="https://pretix.eu" target="_blank" rel="noopener">event ticketing powered by pretix</a>',
|
'poweredby': '<a href="https://pretix.eu" target="_blank" rel="noopener">event ticketing powered by pretix</a>',
|
||||||
'events': [
|
'events': [
|
||||||
{'name': 'Present', 'date_range': 'Jan. 1, 2019 11:00', 'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
{'name': 'Present', 'date_range': 'Jan. 1, 2019 11:00', 'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk, 'location': ''},
|
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk, 'location': ''},
|
||||||
{'name': 'Future', 'date_range': 'Jan. 4, 2019 11:00', 'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
{'name': 'Future', 'date_range': 'Jan. 4, 2019 11:00', 'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk, 'location': ''}
|
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk, 'location': ''}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -526,14 +526,14 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
{'day': 1, 'date': '2019-01-01', 'events': [
|
{'day': 1, 'date': '2019-01-01', 'events': [
|
||||||
{'name': 'Present', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 1, 2019 11:00',
|
{'name': 'Present', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 1, 2019 11:00',
|
||||||
'location': '',
|
'location': '',
|
||||||
'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk}]},
|
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk}]},
|
||||||
{'day': 2, 'date': '2019-01-02', 'events': []},
|
{'day': 2, 'date': '2019-01-02', 'events': []},
|
||||||
{'day': 3, 'date': '2019-01-03', 'events': []},
|
{'day': 3, 'date': '2019-01-03', 'events': []},
|
||||||
{'day': 4, 'date': '2019-01-04', 'events': [
|
{'day': 4, 'date': '2019-01-04', 'events': [
|
||||||
{'name': 'Future', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 4, 2019 11:00',
|
{'name': 'Future', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 4, 2019 11:00',
|
||||||
'location': '',
|
'location': '',
|
||||||
'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk}]},
|
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk}]},
|
||||||
{'day': 5, 'date': '2019-01-05', 'events': []},
|
{'day': 5, 'date': '2019-01-05', 'events': []},
|
||||||
{'day': 6, 'date': '2019-01-06', 'events': []}
|
{'day': 6, 'date': '2019-01-06', 'events': []}
|
||||||
@@ -599,14 +599,14 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
{'day_formatted': 'Tue, Jan 1st', 'date': '2019-01-01', 'events': [
|
{'day_formatted': 'Tue, Jan 1st', 'date': '2019-01-01', 'events': [
|
||||||
{'name': 'Present', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 1, 2019 11:00',
|
{'name': 'Present', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 1, 2019 11:00',
|
||||||
'location': '',
|
'location': '',
|
||||||
'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk}], 'today': True},
|
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se1.pk}], 'today': True},
|
||||||
{'day_formatted': 'Wed, Jan 2nd', 'date': '2019-01-02', 'events': [], 'today': False},
|
{'day_formatted': 'Wed, Jan 2nd', 'date': '2019-01-02', 'events': [], 'today': False},
|
||||||
{'day_formatted': 'Thu, Jan 3rd', 'date': '2019-01-03', 'events': [], 'today': False},
|
{'day_formatted': 'Thu, Jan 3rd', 'date': '2019-01-03', 'events': [], 'today': False},
|
||||||
{'day_formatted': 'Fri, Jan 4th', 'date': '2019-01-04', 'events': [
|
{'day_formatted': 'Fri, Jan 4th', 'date': '2019-01-04', 'events': [
|
||||||
{'name': 'Future', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 4, 2019 11:00',
|
{'name': 'Future', 'time': '11:00', 'continued': False, 'date_range': 'Jan. 4, 2019 11:00',
|
||||||
'location': '',
|
'location': '',
|
||||||
'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk}], 'today': False},
|
'event_url': 'http://example.com/ccc/30c3/', 'subevent': se2.pk}], 'today': False},
|
||||||
{'day_formatted': 'Sat, Jan 5th', 'date': '2019-01-05', 'events': [], 'today': False},
|
{'day_formatted': 'Sat, Jan 5th', 'date': '2019-01-05', 'events': [], 'today': False},
|
||||||
{'day_formatted': 'Sun, Jan 6th', 'date': '2019-01-06', 'events': [], 'today': False}
|
{'day_formatted': 'Sun, Jan 6th', 'date': '2019-01-06', 'events': [], 'today': False}
|
||||||
@@ -641,12 +641,12 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
'event_url': 'http://example.com/ccc/30c3/',
|
'event_url': 'http://example.com/ccc/30c3/',
|
||||||
'location': '',
|
'location': '',
|
||||||
'name': '30C3'},
|
'name': '30C3'},
|
||||||
{'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
{'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'date_range': 'Jan. 1, 2019 10:00',
|
'date_range': 'Jan. 1, 2019 10:00',
|
||||||
'location': '',
|
'location': '',
|
||||||
'event_url': 'http://example.com/ccc/present/',
|
'event_url': 'http://example.com/ccc/present/',
|
||||||
'name': 'Present'},
|
'name': 'Present'},
|
||||||
{'availability': {'color': 'green', 'text': 'Book now', 'reason': 'ok'},
|
{'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'date_range': 'Jan. 4, 2019 10:00',
|
'date_range': 'Jan. 4, 2019 10:00',
|
||||||
'location': '',
|
'location': '',
|
||||||
'event_url': 'http://example.com/ccc/future/',
|
'event_url': 'http://example.com/ccc/future/',
|
||||||
@@ -683,8 +683,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
[None,
|
[None,
|
||||||
{'date': '2019-01-01',
|
{'date': '2019-01-01',
|
||||||
'day': 1,
|
'day': 1,
|
||||||
'events': [{'availability': {'color': 'green',
|
'events': [{'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'text': 'Book now', 'reason': 'ok'},
|
|
||||||
'continued': False,
|
'continued': False,
|
||||||
'date_range': 'Jan. 1, 2019 10:00',
|
'date_range': 'Jan. 1, 2019 10:00',
|
||||||
'event_url': 'http://example.com/ccc/present/',
|
'event_url': 'http://example.com/ccc/present/',
|
||||||
@@ -692,8 +691,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
'location': '',
|
'location': '',
|
||||||
'subevent': None,
|
'subevent': None,
|
||||||
'time': '10:00'},
|
'time': '10:00'},
|
||||||
{'availability': {'color': 'green',
|
{'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'text': 'Book now', 'reason': 'ok'},
|
|
||||||
'continued': False,
|
'continued': False,
|
||||||
'date_range': 'Jan. 1, 2019 11:00',
|
'date_range': 'Jan. 1, 2019 11:00',
|
||||||
'event_url': 'http://example.com/ccc/30c3/',
|
'event_url': 'http://example.com/ccc/30c3/',
|
||||||
@@ -705,8 +703,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
{'date': '2019-01-03', 'day': 3, 'events': []},
|
{'date': '2019-01-03', 'day': 3, 'events': []},
|
||||||
{'date': '2019-01-04',
|
{'date': '2019-01-04',
|
||||||
'day': 4,
|
'day': 4,
|
||||||
'events': [{'availability': {'color': 'green',
|
'events': [{'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'text': 'Book now', 'reason': 'ok'},
|
|
||||||
'continued': False,
|
'continued': False,
|
||||||
'date_range': 'Jan. 4, 2019 10:00',
|
'date_range': 'Jan. 4, 2019 10:00',
|
||||||
'event_url': 'http://example.com/ccc/future/',
|
'event_url': 'http://example.com/ccc/future/',
|
||||||
@@ -714,8 +711,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
|||||||
'location': '',
|
'location': '',
|
||||||
'subevent': None,
|
'subevent': None,
|
||||||
'time': '10:00'},
|
'time': '10:00'},
|
||||||
{'availability': {'color': 'green',
|
{'availability': {'color': 'none', 'text': '', 'reason': 'unknown'},
|
||||||
'text': 'Book now', 'reason': 'ok'},
|
|
||||||
'continued': False,
|
'continued': False,
|
||||||
'date_range': 'Jan. 4, 2019 11:00',
|
'date_range': 'Jan. 4, 2019 11:00',
|
||||||
'event_url': 'http://example.com/ccc/30c3/',
|
'event_url': 'http://example.com/ccc/30c3/',
|
||||||
|
|||||||
Reference in New Issue
Block a user