This commit is contained in:
Raphael Michel
2022-01-12 10:19:02 +01:00
parent 357092ec44
commit 8ae4304c7d
3 changed files with 10 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ def test_update_check_disabled():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_disallowed,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
@@ -85,6 +86,7 @@ def test_update_check_sent_no_updates():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_not_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
gs = GlobalSettingsObject()
@@ -100,6 +102,7 @@ def test_update_check_sent_updates():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
gs = GlobalSettingsObject()
@@ -118,6 +121,7 @@ def test_update_check_mail_sent():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
@@ -137,6 +141,7 @@ def test_update_check_mail_sent_only_after_change():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
@@ -150,6 +155,7 @@ def test_update_check_mail_sent_only_after_change():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_not_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
@@ -160,6 +166,7 @@ def test_update_check_mail_sent_only_after_change():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
@@ -202,6 +209,7 @@ def test_result_table_up2date():
responses.POST, 'https://pretix.eu/.update_check/',
callback=request_callback_not_updatable,
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
update_check.update_check.apply(throw=True)
tbl = update_check.check_result_table()

View File

@@ -93,6 +93,7 @@ def test_webhook_trigger_event_specific(event, order, webhook, monkeypatch_on_co
responses.POST, 'https://google.com',
callback=lambda r: (200, {}, 'ok'),
content_type='application/json',
match_querystring=None, # https://github.com/getsentry/responses/issues/464
)
with transaction.atomic():