diff --git a/PyRIGS/tests/base.py b/PyRIGS/tests/base.py index 1b3e12bb..043d4cee 100644 --- a/PyRIGS/tests/base.py +++ b/PyRIGS/tests/base.py @@ -58,7 +58,7 @@ def screenshot_failure(func): func(self, *args, **kwargs) except Exception as e: screenshot_name = func.__module__ + "." + func.__qualname__ - screenshot_file = "screenshots/"+func.__qualname__+".png" + screenshot_file = "screenshots/" + func.__qualname__ + ".png" if not pathlib.Path("screenshots").is_dir(): os.mkdir("screenshots") self.driver.save_screenshot(screenshot_file) diff --git a/PyRIGS/tests/regions.py b/PyRIGS/tests/regions.py index c24b05ad..a4ac9253 100644 --- a/PyRIGS/tests/regions.py +++ b/PyRIGS/tests/regions.py @@ -19,6 +19,8 @@ def parse_bool_from_string(string): return False # 12-Hour vs 24-Hour Time. Affects widget display + + def get_time_format(): # Default time_format = "%H:%M" diff --git a/RIGS/tests/test_functional.py b/RIGS/tests/test_functional.py index e3c15152..ef167412 100644 --- a/RIGS/tests/test_functional.py +++ b/RIGS/tests/test_functional.py @@ -23,8 +23,6 @@ from django.test.client import Client from django.core import mail, signing from django.http import HttpResponseBadRequest from django.conf import settings -import sys - @screenshot_failure_cls class BaseRigboardTest(AutoLoginTest): @@ -233,8 +231,7 @@ class TestEventCreate(BaseRigboardTest): self.page.person_selector.set_option(self.client.name, True) self.page.person_selector.toggle() self.assertFalse(self.page.person_selector.is_open) - print("Language: " + self.driver.execute_script("return window.navigator.userLanguage || window.navigator.language;"), file=sys.stderr) - + self.page.name = "Access Validation Test" self.page.start_date = datetime.date(2020, 1, 1)