diff --git a/openedx/core/djangoapps/discussions/tests/test_views.py b/openedx/core/djangoapps/discussions/tests/test_views.py index 1429f205dd6..91789711b2f 100644 --- a/openedx/core/djangoapps/discussions/tests/test_views.py +++ b/openedx/core/djangoapps/discussions/tests/test_views.py @@ -400,7 +400,7 @@ def test_enabled_configuration(self, payload): data = self.get() for tab in self.course.tabs: if tab.tab_id == 'discussion': - assert data['enabled'] and not self.course.is_hidden + assert data['enabled'] and not tab.is_hidden break def test_change_plugin_configuration(self):