Skip to content

Commit 8bc9c99

Browse files
committed
Update requirements
Update Django 4.0.4 → 4.1.2
1 parent 465d282 commit 8bc9c99

File tree

3 files changed

+42
-38
lines changed

3 files changed

+42
-38
lines changed

mapsapp/tests/test_authentification.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from django.contrib.auth.models import User
33
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
44
from django.urls import reverse
5+
from selenium.webdriver.common.by import By
56
from selenium.webdriver.firefox.options import Options
67
from selenium.webdriver.firefox.webdriver import WebDriver
78

@@ -30,9 +31,9 @@ def test_login(self):
3031
self.create_test_user('hscmi', 'password')
3132
self.browser.get(self.live_server_url + reverse('login'))
3233

33-
username = self.browser.find_element_by_id('username')
34-
password = self.browser.find_element_by_id('password')
35-
loginbutton = self.browser.find_element_by_id('login')
34+
username = self.browser.find_element(By.ID, 'username')
35+
password = self.browser.find_element(By.ID, 'password')
36+
loginbutton = self.browser.find_element(By.ID, 'login')
3637

3738
username.send_keys("hscmi")
3839
password.send_keys("password")
@@ -46,4 +47,4 @@ def create_test_user(username, password):
4647
testuser = User()
4748
testuser.username = username
4849
testuser.password = make_password(password)
49-
testuser.save()
50+
testuser.save()

mapsapp/tests/test_smoketest.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from django.test import override_settings
88
from django.urls import reverse, re_path
99
from django.views.static import serve
10+
from selenium.webdriver.common.by import By
1011
from selenium.webdriver.firefox.options import Options
1112
from selenium.webdriver.firefox.webdriver import WebDriver
1213

@@ -182,14 +183,14 @@ def test_smoke_test(self):
182183

183184
# 099_logout
184185

185-
logout = self.browser.find_element_by_id('user-nav-logout')
186+
logout = self.browser.find_element(By.ID, 'user-nav-logout')
186187

187188
logout.click()
188189

189190
self.assertLoggedOut()
190191

191192
def get_new_map_uuid(self):
192-
href = self.browser.find_element_by_id('a-goto-created-map').get_attribute('href')
193+
href = self.browser.find_element(By.ID, 'a-goto-created-map').get_attribute('href')
193194
return href.split('/')[-1]
194195

195196
def open_index_page(self):
@@ -205,25 +206,25 @@ def click_to_login(self, element_id):
205206
self.assertLoggedIn()
206207

207208
def click(self, element_id):
208-
button = self.browser.find_element_by_id(element_id)
209+
button = self.browser.find_element(By.ID, element_id)
209210
button.click()
210211

211212
def fill_fields(self, content):
212213
for key, value in content.items():
213214
self.fill_field(key, value)
214215

215216
def fill_field(self, element_id, content):
216-
field = self.browser.find_element_by_id(element_id)
217+
field = self.browser.find_element(By.ID, element_id)
217218
field.send_keys(content)
218219

219220
def click_page_link(self, element_id, content):
220-
link = self.browser.find_element_by_id(element_id)
221+
link = self.browser.find_element(By.ID, element_id)
221222
self.scroll_to(link)
222223
link.click()
223224
self.assertIn(content, self.browser.page_source)
224225

225226
def click_page_link_text(self, link_text, content):
226-
link = self.browser.find_element_by_partial_link_text(link_text)
227+
link = self.browser.find_element(By.PARTIAL_LINK_TEXT, link_text)
227228
self.scroll_to(link)
228229
link.click()
229230
self.assertIn(content, self.browser.page_source)
@@ -232,7 +233,7 @@ def scroll_to(self, link):
232233
self.browser.execute_script("arguments[0].scrollIntoView();", link)
233234

234235
def assertLoggedIn(self):
235-
self.browser.find_element_by_id('user-nav-username')
236+
self.browser.find_element(By.ID, 'user-nav-username')
236237

237238
def assertLoggedOut(self):
238239
self.assertNotIn('user-nav-username', self.browser.page_source)

requirements.txt

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,52 @@
11
adal==1.2.7
22
appdirs==1.4.4
3-
asgiref==3.5.0
4-
asn1crypto==1.4.0
3+
asgiref==3.5.2
4+
asn1crypto==1.5.1
55
azure-common==1.1.28
6-
azure-core==1.22.1
7-
azure-storage-blob==12.9.0
6+
azure-core==1.26.0
7+
azure-storage-blob==12.13.1
88
azure-storage-common==2.1.0
9-
CacheControl==0.12.10
10-
certifi==2021.10.8
11-
cffi==1.15.0
12-
chardet==4.0.0
9+
CacheControl==0.12.11
10+
certifi==2022.9.24
11+
cffi==1.15.1
12+
chardet==5.0.0
1313
charset-normalizer==2.0.12
14-
click==8.0.3
15-
colorama==0.4.4
14+
click==8.1.3
15+
colorama==0.4.5
1616
contextlib2==21.6.0
17-
cryptography==36.0.1
18-
distlib==0.3.4
19-
distro==1.6.0
20-
Django==4.0.4
21-
django-storages==1.12.3
17+
cryptography==38.0.1
18+
distlib==0.3.6
19+
distro==1.7.0
20+
Django==4.1.2
21+
django-storages==1.13.1
2222
django-widget-tweaks==1.4.12
2323
html5lib==1.1
24-
idna==3.3
24+
idna==3.4
2525
ipaddr==2.2.0
2626
isodate==0.6.1
2727
lockfile==0.12.2
28-
msgpack==1.0.3
29-
msrest==0.6.21
28+
msgpack==1.0.4
29+
msrest==0.7.1
3030
msrestazure==0.6.4
31-
oauthlib==3.2.0
31+
oauthlib==3.2.1
3232
packaging==21.3
33-
pep517==0.12.0
34-
Pillow==9.0.1
33+
pep517==0.13.0
34+
Pillow==9.2.0
3535
progress==1.6
3636
pycparser==2.21
37-
PyJWT==2.3.0
38-
pyparsing==3.0.7
37+
PyJWT==2.5.0
38+
pyparsing==3.0.9
3939
python-dateutil==2.8.2
4040
pytoml==0.1.21
41-
pytz==2021.3
42-
requests==2.27.1
41+
pytz==2022.4
42+
requests==2.28.1
4343
requests-oauthlib==1.3.1
4444
retrying==1.3.3
4545
six==1.16.0
46-
sqlparse==0.4.2
46+
sqlparse==0.4.3
4747
toml==0.10.2
48-
urllib3==1.26.8
48+
tomli==2.0.1
49+
typing_extensions==4.4.0
50+
urllib3==1.26.12
4951
uuid==1.30
5052
webencodings==0.5.1

0 commit comments

Comments
 (0)