diff --git a/common/djangoapps/microsite_configuration/middleware.py b/common/djangoapps/microsite_configuration/middleware.py index b6ca090c37..d3f1cf8fc6 100644 --- a/common/djangoapps/microsite_configuration/middleware.py +++ b/common/djangoapps/microsite_configuration/middleware.py @@ -38,7 +38,7 @@ class MicrositeMiddleware(object): return response -class MicrositeSessionCookieDomainMiddleware(): +class MicrositeSessionCookieDomainMiddleware(object): """ Special case middleware which should be at the very end of the MIDDLEWARE list (so that it runs first on the process_response chain). This middleware will define a wrapper function for the set_cookie() function diff --git a/common/test/acceptance/pages/studio/overview.py b/common/test/acceptance/pages/studio/overview.py index b3d22bf26e..f648007fe0 100644 --- a/common/test/acceptance/pages/studio/overview.py +++ b/common/test/acceptance/pages/studio/overview.py @@ -404,7 +404,7 @@ class CourseOutlineSection(CourseOutlineContainer, CourseOutlineChild): self.add_child() -class ExpandCollapseLinkState: +class ExpandCollapseLinkState(object): """ Represents the three states that the expand/collapse link can be in """ diff --git a/common/test/acceptance/tests/studio/test_studio_outline.py b/common/test/acceptance/tests/studio/test_studio_outline.py index 3d156d9515..c3eda18e1b 100644 --- a/common/test/acceptance/tests/studio/test_studio_outline.py +++ b/common/test/acceptance/tests/studio/test_studio_outline.py @@ -141,13 +141,16 @@ class WarningMessagesTest(CourseOutlineTest): FUTURE_UNPUBLISHED_WARNING = 'Unpublished changes to content that will release in the future' NEVER_PUBLISHED_WARNING = 'Unpublished units will not be released' - class PublishState: + class PublishState(object): + """ + Default values for representing the published state of a unit + """ NEVER_PUBLISHED = 1 UNPUBLISHED_CHANGES = 2 PUBLISHED = 3 VALUES = [NEVER_PUBLISHED, UNPUBLISHED_CHANGES, PUBLISHED] - class UnitState: + class UnitState(object): """ Represents the state of a unit """ def __init__(self, is_released, publish_state, is_locked):