feat(discussions): Add messages field to provider descriptions

This adds an `messages` field containing messages relevant
for configuring the provider to the DiscussionsConfigurationView.

Related tickets:
* [TNL-8339](https://openedx.atlassian.net/browse/TNL-8339)
* [TNL-8523](https://openedx.atlassian.net/browse/TNL-8523)
* [BB-4249 (OpenCraft Internal)](https://tasks.opencraft.com/browse/BB-4249)
This commit is contained in:
João Cabrita
2021-07-03 18:31:31 +01:00
committed by Awais Jibran
parent cbcef73ec4
commit 0879568023
2 changed files with 63 additions and 33 deletions

View File

@@ -147,6 +147,10 @@ class DataTest(AuthorizedApiTest):
assert not data['enabled']
assert data['provider_type'] == 'legacy'
assert data['providers']['available']['legacy'] == AVAILABLE_PROVIDER_MAP['legacy']
assert not [
name for name, spec in data['providers']['available'].items()
if "messages" not in spec
], "Found available providers without messages field"
assert data['lti_configuration'] == {}
assert data['plugin_configuration'] == {
'allow_anonymous': True,