From 12065a30e0cf15dc9eb7b99eaf7aa68e97c85d26 Mon Sep 17 00:00:00 2001 From: Jawayria Date: Tue, 2 Feb 2021 20:12:07 +0500 Subject: [PATCH] pylint-amnesty on common/lib --- common/lib/conftest.py | 4 ++-- common/lib/pytest.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lib/conftest.py b/common/lib/conftest.py index 7bd2d497ca..03bd8596e5 100644 --- a/common/lib/conftest.py +++ b/common/lib/conftest.py @@ -1,4 +1,4 @@ -"""Code run by pylint before running any tests.""" +"""Code run by pylint before running any tests.""" # lint-amnesty, pylint: disable=django-not-configured # Patch the xml libs before anything else. @@ -13,7 +13,7 @@ defuse_xml_libs() @pytest.fixture(autouse=True) -def no_webpack_loader(monkeypatch): +def no_webpack_loader(monkeypatch): # lint-amnesty, pylint: disable=missing-function-docstring monkeypatch.setattr( "webpack_loader.templatetags.webpack_loader.render_bundle", lambda entry, extension=None, config='DEFAULT', attrs='': '' diff --git a/common/lib/pytest.ini b/common/lib/pytest.ini index 93c230eab2..d166a11965 100644 --- a/common/lib/pytest.ini +++ b/common/lib/pytest.ini @@ -1,6 +1,6 @@ [pytest] DJANGO_SETTINGS_MODULE = openedx.tests.settings -addopts = --nomigrations --reuse-db --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none +addopts = --nomigrations --reuse-db --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none # lint-amnesty, pylint: disable=syntax-error # Enable default handling for all warnings, including those that are ignored by default; # but hide rate-limit warnings (because we deliberately don't throttle test user logins) # and field_data deprecation warnings (because fixing them requires a major low-priority refactoring)