Merge pull request #26375 from edx/jawayria/bom-2330-pylint-amnesty

BOM-2330: Applied pylint-amnesty to util, verified_track_content, vid…
This commit is contained in:
Jawayria
2021-02-04 18:30:55 +05:00
committed by GitHub
19 changed files with 52 additions and 51 deletions

View File

@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=missing-module-docstring
import pytest
from django.core.management import CommandError, call_command
def test_without_args(capsys):
def test_without_args(capsys): # lint-amnesty, pylint: disable=unused-argument
with pytest.raises(CommandError, match='Error: the following arguments are required: setting'):
call_command('print_setting')
@@ -13,6 +13,6 @@ def test_without_args(capsys):
def test_with_setting_args(capsys):
call_command('print_setting', 'DEBUG')
out, err = capsys.readouterr()
out, err = capsys.readouterr() # lint-amnesty, pylint: disable=unused-variable
assert 'False' in out
assert 'INSTALLED_APPS' not in out

View File

@@ -22,7 +22,7 @@ class UserMessagesTestCase(TestCase):
Unit tests for page level user messages.
"""
def setUp(self):
super(UserMessagesTestCase, self).setUp()
super(UserMessagesTestCase, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
self.student = UserFactory.create()
self.request = RequestFactory().request()
self.request.session = {}

View File

@@ -12,7 +12,7 @@ from ..user_utils import SystemUser
class SystemUserTestCase(unittest.TestCase):
""" Tests for response-related utility functions """
def setUp(self):
super(SystemUserTestCase, self).setUp()
super(SystemUserTestCase, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
self.sysuser = SystemUser()
def test_system_user_is_anonymous(self):