Merge pull request 'Fix some type hints in civicrm_tester/base.py' (#10) from cas_typehint_fix_2021-11-03 into main

Reviewed-on: #10
This commit is contained in:
Cassowary Rusnov 2021-11-03 17:33:48 +01:00
commit b91c04774d

View File

@ -11,6 +11,7 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from typing import Tuple, List
class BaseTester:
"""
@ -117,7 +118,7 @@ class BaseTester:
def _test(self, *args):
"""Placeholder to be overwritten by overloading classes"""
def _test_all(self, test_strings: tuple[str, str, str]):
def _test_all(self, test_strings: Tuple[str, str, str]):
"""Loops testing over the given terms"""
try:
self.login()
@ -151,7 +152,7 @@ class SearchExportTester(BaseTester):
self.contact_selectall_id = "CIVICRM_QFID_ts_all_4"
self.contact_dropdown_id = "select2-chosen-4"
def _get_export_id(self) -> list[str]:
def _get_export_id(self) -> List[str]:
"""Parses url to get the param used to ID what search we are currently doing"""
export_page_url = self.browser.current_url
parsed = urlparse.urlparse(export_page_url)