diff --git a/openedx/core/djangoapps/certificates/tests/__init__.py b/openedx/core/djangoapps/certificates/tests/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/openedx/core/djangoapps/certificates/tests/test_api.py b/openedx/core/djangoapps/certificates/tests/test_api.py index 99d1bc48b1c4..1e7e9331469e 100644 --- a/openedx/core/djangoapps/certificates/tests/test_api.py +++ b/openedx/core/djangoapps/certificates/tests/test_api.py @@ -1,3 +1,6 @@ +""" +API tests for the openedx certificates app +""" from contextlib import contextmanager from datetime import datetime @@ -63,14 +66,20 @@ def is_valid(self): @contextmanager def configure_waffle_namespace(feature_enabled): + """ + Context manager to configure the certs flags + """ namespace = certs_waffle.waffle() - auto_certificate_generation_switch = LegacyWaffleSwitch(namespace, certs_waffle.AUTO_CERTIFICATE_GENERATION) + auto_certificate_generation_switch = LegacyWaffleSwitch(namespace, certs_waffle.AUTO_CERTIFICATE_GENERATION) # pylint: disable=toggle-missing-annotation with override_waffle_switch(auto_certificate_generation_switch, active=feature_enabled): yield @ddt.ddt class CertificatesApiTestCase(TestCase): + """ + API tests + """ def setUp(self): super().setUp() self.course = CourseOverviewFactory.create( diff --git a/openedx/core/djangoapps/demographics/api/__init__.py b/openedx/core/djangoapps/demographics/api/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1