Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias K <6317548+theCalcaholic@users.noreply.github.com>2021-08-06 05:44:16 +0300
committernachoparker <nacho@ownyourbits.com>2021-08-10 02:16:38 +0300
commitf93c183eccdf50f3b035dfc6bbc196a625bfb8f9 (patch)
treec2fa42bb9749e708a8fbd8cda95fcb45312e080d /tests/nextcloud_tests.py
parentb8402459b1e19a1a237e0f76a0b872fffbf78f8e (diff)
nextcloud_tests.py: Ignore warning about unset default phone region
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
Diffstat (limited to 'tests/nextcloud_tests.py')
-rwxr-xr-xtests/nextcloud_tests.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/tests/nextcloud_tests.py b/tests/nextcloud_tests.py
index 5e8d6def..7f616711 100755
--- a/tests/nextcloud_tests.py
+++ b/tests/nextcloud_tests.py
@@ -19,6 +19,7 @@ import os
import getopt
import configparser
import signal
+import re
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
@@ -145,15 +146,20 @@ def test_nextcloud(IP, nc_port, driver):
raise ConfigTestFailure("There have been errors or warnings")
infos = driver.find_elements_by_css_selector("#postsetupchecks > .info > li")
- if len(infos) != 1:
- raise ConfigTestFailure("Warnings are shown, but there isn't exactly one info message")
-
- php_modules = infos[0].find_elements_by_css_selector("li")
- if len(php_modules) != 1:
- raise ConfigTestFailure(f"Could not find the list of php modules within the info message "
- f"'{infos[0].text}'")
- if php_modules[0].text != "imagick":
- raise ConfigTestFailure("The list of php_modules does not equal [imagick]")
+ for info in infos:
+ if re.match(r'.*Your installation has no default phone region set.*', info.text):
+ continue
+ else:
+
+ # if len(infos) != 1:
+ # raise ConfigTestFailure("Warnings are shown, but there isn't exactly one info message")
+
+ php_modules = infos[0].find_elements_by_css_selector("li")
+ if len(php_modules) != 1:
+ raise ConfigTestFailure(f"Could not find the list of php modules within the info message "
+ f"'{infos[0].text}'")
+ if php_modules[0].text != "imagick":
+ raise ConfigTestFailure("The list of php_modules does not equal [imagick]")
elif not element_ok.is_displayed():
raise ConfigTestFailure("Neither the warnings nor the ok status is displayed "