From d49dd622f78e043082acbbcf948d1af85af17703 Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 29 May 2024 21:48:33 +0300 Subject: [PATCH] fix lint --- .../programs/management/commands/enable_programs.py | 7 +++++-- .../core/djangoapps/programs/tests/test_enable_programs.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/programs/management/commands/enable_programs.py b/openedx/core/djangoapps/programs/management/commands/enable_programs.py index d53ba891b752..9b1a6507d9c3 100644 --- a/openedx/core/djangoapps/programs/management/commands/enable_programs.py +++ b/openedx/core/djangoapps/programs/management/commands/enable_programs.py @@ -42,8 +42,11 @@ class Command(BaseCommand): Set up programs configurations for the LMS. Example usage: - ./manage.py lms enable_programs --discovery-api-url=http://edx.devstack.discovery:18381/api/v1/ --settings=production # pylint: disable=C0301 - ./manage.py lms enable_programs --discovery-api-url=http://edx.devstack.discovery:18381/api/v1/ --service-username=discovery_worker --settings=production # pylint: disable=C0301 + ./manage.py lms enable_programs --discovery-api-url=http://edx.devstack.discovery:18381/api/v1/ + --settings=production + + ./manage.py lms enable_programs --discovery-api-url=http://edx.devstack.discovery:18381/api/v1/ + --service-username=discovery_worker --settings=production """ help = 'Create or update LMS configuration models to enable programs feature.' diff --git a/openedx/core/djangoapps/programs/tests/test_enable_programs.py b/openedx/core/djangoapps/programs/tests/test_enable_programs.py index 1739045faadd..f8c9a59cdba5 100644 --- a/openedx/core/djangoapps/programs/tests/test_enable_programs.py +++ b/openedx/core/djangoapps/programs/tests/test_enable_programs.py @@ -42,7 +42,7 @@ def _check_configurations_updated(self): return False if SiteConfiguration.objects.get( - site=self.site).site_values.get('COURSE_CATALOG_API_URL') != self.discovery_url: + site=self.site).site_values.get('COURSE_CATALOG_API_URL') != self.discovery_url: return False return True