Python Requirements Update (#29516)

* chore: Updating Python Requirements

* fix: fix pylint issues

Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com>
This commit is contained in:
edX requirements bot
2021-12-08 04:13:27 -05:00
committed by GitHub
parent 5d5a11fc16
commit bb20b17428
37 changed files with 100 additions and 100 deletions

View File

@@ -117,7 +117,7 @@ class TestCourseListing(ModuleStoreTestCase, MilestonesTestCaseMixin):
CourseOverview.objects.filter(id=course_key).delete()
courses_list = list(get_course_enrollments(self.student, None, []))
assert courses_list == []
assert not courses_list
def test_course_listing_errored_deleted_courses(self):
"""

View File

@@ -68,4 +68,4 @@ class StubYouTubeServiceTest(unittest.TestCase): # lint-amnesty, pylint: disabl
assert response.status_code == 200
# ensure that server config dict is empty after successful reset
assert self.server.config == {}
assert not self.server.config

View File

@@ -82,7 +82,7 @@ class GetProviderUserStatesTestCase(TestCase):
def test_returns_empty_list_if_no_enabled_providers(self):
assert not provider.Registry.enabled()
assert [] == pipeline.get_provider_user_states(self.user)
assert not pipeline.get_provider_user_states(self.user)
def test_state_not_returned_for_disabled_provider(self):
disabled_provider = self.configure_google_provider(enabled=False)
@@ -130,7 +130,7 @@ class GetProviderUserStatesTestCase(TestCase):
states = pipeline.get_provider_user_states(self.user)
assert [] == list(social_models.DjangoStorage.user.objects.all())
assert not list(social_models.DjangoStorage.user.objects.all())
assert 2 == len(states)
google_state = [state for state in states if state.provider.provider_id == google_provider.provider_id][0]

View File

@@ -224,4 +224,4 @@ class RegistryTest(testutil.TestCase):
def test_get_enabled_by_backend_name_returns_none_if_provider_not_enabled(self):
google_provider = self.configure_google_provider(enabled=False)
found = list(provider.Registry.get_enabled_by_backend_name(google_provider.backend_name))
assert found == []
assert not found

View File

@@ -142,7 +142,7 @@ class MilestonesHelpersTestCase(ModuleStoreTestCase):
course = CourseFactory()
required_content = milestones_helpers.get_required_content(course.id, AnonymousUser())
assert required_content == []
assert not required_content
# NOTE (CCB): The initial version of anonymous courseware access is very simple. We avoid accidentally
# exposing locked content by simply avoiding anonymous access altogether for courses runs with milestones.