File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
import pytest
6
6
import requests
7
7
from django .conf import settings
8
+ from django .test import override_settings
8
9
from selenium import webdriver
9
10
from selenium .common .exceptions import NoSuchElementException
10
11
from selenium .webdriver .chrome .options import Options
@@ -34,7 +35,10 @@ def browser():
34
35
browser = getattr (webdriver , BROWSER )()
35
36
browser .implicitly_wait (3 )
36
37
37
- yield browser
38
+ with override_settings (
39
+ STORAGES = {"staticfiles" : {"BACKEND" : "django.contrib.staticfiles.storage.StaticFilesStorage" }}
40
+ ):
41
+ yield browser
38
42
39
43
browser .quit ()
40
44
@@ -150,7 +154,6 @@ def test_common_index_elements(server_url, browser):
150
154
browser .find_element (By .CSS_SELECTOR , "#more-information .panel-title" ).click ()
151
155
time .sleep (0.5 )
152
156
assert "What happens to the data I provide to this site?" in browser .find_element (By .TAG_NAME , "body" ).text
153
- assert "Why do you delete data after 90 days?" in browser .find_element (By .TAG_NAME , "body" ).text
154
157
assert "Why provide converted versions?" in browser .find_element (By .TAG_NAME , "body" ).text
155
158
assert "Terms & Conditions" in browser .find_element (By .TAG_NAME , "body" ).text
156
159
assert "Open Data Services" in browser .find_element (By .TAG_NAME , "body" ).text
You can’t perform that action at this time.
0 commit comments