Reusable media (#3131)

Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
Raphael Michel
2023-04-03 10:45:22 +02:00
committed by GitHub
parent 377117548d
commit d0b449ea89
67 changed files with 2876 additions and 133 deletions

View File

@@ -1212,7 +1212,8 @@ def test_get_event_settings(token_client, organizer, event):
"value": "https://example.org",
"label": "Imprint URL",
"help_text": "This should point e.g. to a part of your website that has your contact details and legal "
"information."
"information.",
"readonly": False,
}
@@ -1229,14 +1230,17 @@ def test_patch_event_settings(token_client, organizer, event):
{
'de': 'Ich bin mit den AGB einverstanden.'
}
]
],
'reusable_media_active': True, # readonly, ignored
},
format='json'
)
assert resp.status_code == 200
assert resp.data['imprint_url'] == "https://example.com"
assert not resp.data['reusable_media_active']
event.settings.flush()
assert event.settings.imprint_url == 'https://example.com'
assert not event.settings.reusable_media_active
mocked.assert_not_called()
resp = token_client.patch(