added 'test_' and 'Test' to file and classnames, and resolved some type errors
This commit is contained in:
@ -117,7 +117,7 @@ class BaseTester:
|
||||
def _test(self, *args):
|
||||
"""Placeholder to be overwritten by overloading classes"""
|
||||
|
||||
def _test_all(self, test_strings: tuple[str]):
|
||||
def _test_all(self, test_strings: tuple[str, str, str]):
|
||||
"""Loops testing over the given terms"""
|
||||
try:
|
||||
self.login()
|
||||
@ -151,7 +151,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) -> 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)
|
||||
|
@ -4,7 +4,7 @@ from selenium.webdriver.support.select import Select
|
||||
from .base import BaseTester
|
||||
|
||||
|
||||
class ActivitiesTab(BaseTester):
|
||||
class TestActivitiesTab(BaseTester):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.title("Activities Tab")
|
||||
@ -65,4 +65,4 @@ class ActivitiesTab(BaseTester):
|
||||
cid_na = "42269" # Nigel Addams
|
||||
#cid_db = "43193" Use to test 100 max limit
|
||||
cid_tuple = (cid_da, cid_kh, cid_na)
|
||||
self._test_all(cid_tuple)
|
||||
self._test_all(cid_tuple)
|
@ -6,7 +6,7 @@ from selenium.webdriver.common.keys import Keys
|
||||
from .base import SearchExportTester
|
||||
|
||||
|
||||
class ContactExport(SearchExportTester):
|
||||
class TestContactExport(SearchExportTester):
|
||||
"""Tests if exporting contacts from a search returns a CSV file with all contacts."""
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
@ -6,7 +6,7 @@ from selenium.webdriver.common.keys import Keys
|
||||
from .base import SearchExportTester
|
||||
|
||||
|
||||
class SteeringCommitteePrintLabels(SearchExportTester):
|
||||
class TestSteeringCommitteePrintLabels(SearchExportTester):
|
||||
"""Tests the pdf labels for the SteeringCommitee show all contacts names"""
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
Reference in New Issue
Block a user