2021-01-21 15:53:43 +00:00
|
|
|
import argparse
|
2021-01-25 20:02:47 +00:00
|
|
|
|
2021-10-24 19:19:30 +00:00
|
|
|
from civicrm_tester.test_activities_tab import TestActivitiesTab
|
|
|
|
from civicrm_tester.test_contact_export import TestContactExport
|
|
|
|
from civicrm_tester.test_steeringcommittee_print_labels import TestSteeringCommitteePrintLabels
|
2021-01-25 20:02:47 +00:00
|
|
|
|
2021-01-04 19:42:17 +00:00
|
|
|
if __name__ == "__main__":
|
2021-01-15 12:25:14 +00:00
|
|
|
parser = argparse.ArgumentParser(description="")
|
|
|
|
parser.add_argument(
|
|
|
|
"--user", "-u", type=str, dest="user", help="Username of account"
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
"--pass", "-p", type=str, dest="passwd", help="Password of account"
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
"--dev",
|
|
|
|
"-D",
|
|
|
|
dest="dev",
|
|
|
|
action="store_true",
|
|
|
|
help="Test dev site instead of production"
|
|
|
|
)
|
2021-01-15 13:05:40 +00:00
|
|
|
parser.add_argument(
|
2021-10-20 12:57:23 +00:00
|
|
|
"--show-browser",
|
2021-01-15 13:05:40 +00:00
|
|
|
"-s",
|
|
|
|
dest="show_browser",
|
|
|
|
action="store_true",
|
|
|
|
help="Show the web browser"
|
|
|
|
)
|
|
|
|
parser.set_defaults(dev=False, show_browser=False)
|
2021-01-15 12:25:14 +00:00
|
|
|
arguments = parser.parse_args()
|
2021-01-25 20:02:47 +00:00
|
|
|
cl_arg = (
|
2021-01-21 15:53:43 +00:00
|
|
|
arguments.user, arguments.passwd, arguments.dev, arguments.show_browser
|
2021-01-25 20:02:47 +00:00
|
|
|
)
|
2021-10-24 19:19:30 +00:00
|
|
|
TestActivitiesTab(*cl_arg).test_all_hardcoded_contacts()
|
|
|
|
TestContactExport(*cl_arg).test_hardcoded_search_terms()
|
|
|
|
TestSteeringCommitteePrintLabels(*cl_arg).test()
|
2021-01-21 15:53:43 +00:00
|
|
|
|
|
|
|
# Mailing list
|
|
|
|
# Load mailing list test and enter test data
|
|
|
|
# send test email and check for soft crashes
|
|
|
|
# manual check the email sent
|