From b9b7501f065772ee7e1b9f4a3ec386eb3435fac5 Mon Sep 17 00:00:00 2001 From: Luis Felipe Castano Date: Fri, 10 May 2024 14:19:56 -0500 Subject: [PATCH] fix: ignore pylint integration file --- .../tests/{test_integration.py => integration_test.py} | 10 +--------- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) rename eox_hooks/tests/{test_integration.py => integration_test.py} (56%) diff --git a/eox_hooks/tests/test_integration.py b/eox_hooks/tests/integration_test.py similarity index 56% rename from eox_hooks/tests/test_integration.py rename to eox_hooks/tests/integration_test.py index 15b4bff..ad5e6f7 100644 --- a/eox_hooks/tests/test_integration.py +++ b/eox_hooks/tests/integration_test.py @@ -1,28 +1,20 @@ """ Test integration file. """ -from unittest.mock import MagicMock, patch # pylint: disable=C0411 - from django.test import TestCase -class TutorIntegrationTestCase(TestCase): +class IntegrationTestCase(TestCase): """ Tests integration with openedx """ - # pylint: disable=import-outside-toplevel,unused-import def test_current_settings_code_imports(self): """ Running this imports means that our backends import the right signature """ - import eox_hooks.edxapp_wrapper.backends.course_modes_j_v1 # isort:skip import eox_hooks.edxapp_wrapper.backends.course_modes_l_v1 # isort:skip - import eox_hooks.edxapp_wrapper.backends.courses_j_v1 # isort:skip - import eox_hooks.edxapp_wrapper.backends.courses_l_v1 # isort:skip import eox_hooks.edxapp_wrapper.backends.courses_p_v1 # isort:skip import eox_hooks.edxapp_wrapper.backends.enrollments_l_v1 # isort:skip - import eox_hooks.edxapp_wrapper.backends.enrollments_j_v1 # isort:skip - import eox_hooks.edxapp_wrapper.backends.models_j_v1 # isort:skip import eox_hooks.edxapp_wrapper.backends.models_l_v1 # isort:skip diff --git a/setup.cfg b/setup.cfg index 2b8d907..308d812 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,7 +16,7 @@ max-line-length = 120 statistics = True [pylint] -ignore = CVS +ignore = CVS, eox_hooks/tests/integration_test.py [MESSAGES CONTROL] enable =