From 831bec7420d6b4763f727b8b937094a1a91d03ec Mon Sep 17 00:00:00 2001 From: Paulo Viadanna Date: Tue, 10 Sep 2024 18:22:18 -0300 Subject: [PATCH] fix: test --- openedx/core/djangoapps/discussions/tests/test_views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/discussions/tests/test_views.py b/openedx/core/djangoapps/discussions/tests/test_views.py index 165a5d40a37..1429f205dd6 100644 --- a/openedx/core/djangoapps/discussions/tests/test_views.py +++ b/openedx/core/djangoapps/discussions/tests/test_views.py @@ -398,7 +398,10 @@ def test_enabled_configuration(self, payload): self._post(payload) data = self.get() - assert data['enabled'] and not self.course.is_hidden + for tab in self.course.tabs: + if tab.tab_id == 'discussion': + assert data['enabled'] and not self.course.is_hidden + break def test_change_plugin_configuration(self): """