fix: removed hardcoded url for dev civicrm
This commit is contained in:
parent
89016f2347
commit
a36ae742f6
8
main.py
8
main.py
@ -59,7 +59,7 @@ class BaseTester:
|
|||||||
class ContactExport(BaseTester):
|
class ContactExport(BaseTester):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.search_url = "https://crm-dev.caat.org.uk/civicrm/contact/search"
|
self.search_url = self.BASE_URL + "/civicrm/contact/search"
|
||||||
|
|
||||||
self.contact_selectall_id = "CIVICRM_QFID_ts_all_4"
|
self.contact_selectall_id = "CIVICRM_QFID_ts_all_4"
|
||||||
self.contact_dropdown_id = "select2-chosen-4"
|
self.contact_dropdown_id = "select2-chosen-4"
|
||||||
@ -81,7 +81,7 @@ class ContactExport(BaseTester):
|
|||||||
qf_key = self.get_export_id()
|
qf_key = self.get_export_id()
|
||||||
data = {
|
data = {
|
||||||
"qfKey": qf_key,
|
"qfKey": qf_key,
|
||||||
"entryURL": "https://crm-dev.caat.org.uk/civicrm/contact/search",
|
"entryURL": self.BASE_URL + "/civicrm/contact/search",
|
||||||
"_qf_Select_next": "Continue",
|
"_qf_Select_next": "Continue",
|
||||||
"exportOption": 1,
|
"exportOption": 1,
|
||||||
"mergeOption": 0,
|
"mergeOption": 0,
|
||||||
@ -89,9 +89,7 @@ class ContactExport(BaseTester):
|
|||||||
"addressee": 1,
|
"addressee": 1,
|
||||||
}
|
}
|
||||||
req = session.request(
|
req = session.request(
|
||||||
"POST",
|
"POST", self.BASE_URL + "/civicrm/contact/search", data=data
|
||||||
"https://crm-dev.caat.org.uk/civicrm/contact/search",
|
|
||||||
data=data
|
|
||||||
)
|
)
|
||||||
return req
|
return req
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user