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:
committed by
Awais Jibran
parent
cbcef73ec4
commit
0879568023
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user