test: fix ddt in test_link_with_new_catalog_page

This commit is contained in:
Serhii Nanai
2025-09-24 11:32:30 +03:00
parent c64ec1f3ae
commit 47f5cb84bc

View File

@@ -90,13 +90,11 @@ class TestGetPlatformSettings(TestCase):
)
@ddt.data(
(True, True, f'{settings.CATALOG_MICROFRONTEND_URL}/courses'),
(True, False, '/courses'),
(False, True, '/courses'),
(False, False, '/courses')
(True, f'{settings.CATALOG_MICROFRONTEND_URL}/courses'),
(False, '/courses'),
)
@ddt.unpack
def test_link_with_new_catalog_page(self, catalog_mfe_enabled, use_new_catalog_page, expected_catalog_link):
def test_link_with_new_catalog_page(self, catalog_mfe_enabled, expected_catalog_link):
"""
Test that the catalog link is constructed correctly based on the MFE flags.
"""