Replaced ugettext and ugettext_lazy with gettext and gettext_lazy
ugettext and ugettext_lazy were deprecated in Django 3 and will be removed in Django 4.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import time
|
||||
from django.test import tag
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import ugettext
|
||||
from django.utils.translation import gettext
|
||||
from selenium.common.exceptions import NoSuchElementException
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.common.keys import Keys
|
||||
@@ -528,7 +528,7 @@ class TestCase(SeleniumAuthMixin, RoleMixin, ScreenshotTestCase):
|
||||
self.wait_until_stale(c, link)
|
||||
|
||||
action_tabs = c.find_element(By.CSS_SELECTOR, '.action-tabs > ul.nav-tabs')
|
||||
tab = action_tabs.find_element(By.LINK_TEXT, ugettext(u'Ändern'))
|
||||
tab = action_tabs.find_element(By.LINK_TEXT, gettext(u'Ändern'))
|
||||
tab.click()
|
||||
self.wait_until_stale(c, tab)
|
||||
|
||||
@@ -537,7 +537,7 @@ class TestCase(SeleniumAuthMixin, RoleMixin, ScreenshotTestCase):
|
||||
if screenshots:
|
||||
self.save_screenshot('edit-form', sequence=sequence_name)
|
||||
|
||||
button = panel.find_element(By.PARTIAL_LINK_TEXT, ugettext(u'Nächster Abschnitt'))
|
||||
button = panel.find_element(By.PARTIAL_LINK_TEXT, gettext(u'Nächster Abschnitt'))
|
||||
button.click()
|
||||
time.sleep(.5)
|
||||
|
||||
@@ -580,7 +580,7 @@ class TestCase(SeleniumAuthMixin, RoleMixin, ScreenshotTestCase):
|
||||
if screenshots:
|
||||
self.save_screenshot('accepted', sequence=sequence_name)
|
||||
|
||||
link = c.find_element(By.LINK_TEXT, ugettext('Veranstaltungsliste'))
|
||||
link = c.find_element(By.LINK_TEXT, gettext('Veranstaltungsliste'))
|
||||
link.click()
|
||||
self.wait_until_stale(c, link)
|
||||
if screenshots:
|
||||
@@ -618,7 +618,7 @@ class TestCase(SeleniumAuthMixin, RoleMixin, ScreenshotTestCase):
|
||||
if screenshots:
|
||||
self.save_screenshot('confirmed_{}'.format(channel), sequence=sequence_name)
|
||||
|
||||
link = c.find_element(By.LINK_TEXT, ugettext('Veranstaltungsliste'))
|
||||
link = c.find_element(By.LINK_TEXT, gettext('Veranstaltungsliste'))
|
||||
link.click()
|
||||
self.wait_until_stale(c, link)
|
||||
if screenshots:
|
||||
@@ -650,7 +650,7 @@ class TestCase(SeleniumAuthMixin, RoleMixin, ScreenshotTestCase):
|
||||
if screenshots:
|
||||
self.save_screenshot('confirmed_clearance', sequence=sequence_name)
|
||||
|
||||
link = c.find_element(By.LINK_TEXT, ugettext('Veranstaltungsliste'))
|
||||
link = c.find_element(By.LINK_TEXT, gettext('Veranstaltungsliste'))
|
||||
link.click()
|
||||
self.wait_until_stale(c, link)
|
||||
if screenshots:
|
||||
@@ -730,7 +730,7 @@ class TestCase(SeleniumAuthMixin, RoleMixin, ScreenshotTestCase):
|
||||
button.click()
|
||||
self.wait_until_stale(c, button)
|
||||
|
||||
link = c.find_element(By.PARTIAL_LINK_TEXT, ugettext(u'Veranstaltungsliste herunterladen'))
|
||||
link = c.find_element(By.PARTIAL_LINK_TEXT, gettext(u'Veranstaltungsliste herunterladen'))
|
||||
link.click()
|
||||
self.wait_until_stale(c, link)
|
||||
self.save_screenshot('event_export_form')
|
||||
|
||||
Reference in New Issue
Block a user