Skip to content

super(..) -> super() #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion session_security/tests/project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class SleepView(generic.TemplateView):
def get(self, request, *args, **kwargs):
time.sleep(int(request.GET.get('seconds', 0)))
return super(SleepView, self).get(request, *args, **kwargs)
return super().get(request, *args, **kwargs)


urlpatterns = [
Expand Down
8 changes: 4 additions & 4 deletions session_security/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def setUp(self):
self.max_warn_after = EXPIRE_AFTER * 0.9
self.min_expire_after = EXPIRE_AFTER
self.max_expire_after = EXPIRE_AFTER * 1.5
super(SettingsMixin, self).setUp()
super().setUp()


class BaseLiveServerTestCase(SettingsMixin, StaticLiveServerTestCase,
Expand All @@ -36,12 +36,12 @@ class BaseLiveServerTestCase(SettingsMixin, StaticLiveServerTestCase,
fixtures = ['session_security_test_user']

def setUp(self):
SettingsMixin.setUp(self)
super().setUp()
from selenium.webdriver.firefox.options import Options as FirefoxOptions

options = FirefoxOptions()
options.add_argument("--headless")
super(LiveServerTestCase, self).setUp()
super().setUp()
self.sel= webdriver.Firefox(options=options)
self.sel.get('%s%s' % (self.live_server_url, '/admin/'))
self.sel.find_element_by_name('username').send_keys('test')
Expand All @@ -56,4 +56,4 @@ def tearDown(self):
self.sel.quit()
@classmethod
def tearDownClass(cls):
super(BaseLiveServerTestCase, cls).tearDownClass()
super().tearDownClass()
2 changes: 1 addition & 1 deletion session_security/tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MiddlewareTestCase(SettingsMixin, test.TestCase):
fixtures = ['session_security_test_user']

def setUp(self):
super(MiddlewareTestCase, self).setUp()
super().setUp()
self.client = Client()

def test_auto_logout(self):
Expand Down