migrator functions updated
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
from service_app_test.bases import active_and_confirmed
|
||||
from service_app_test.test_application.evyos.datas.get_occupants_codes import get_occupants_types
|
||||
from service_app_test.test_application.evyos.datas.get_occupants_codes import (
|
||||
get_occupants_types,
|
||||
)
|
||||
|
||||
# from service_app_test.test_application.evyos.datas.get_type_codes import get_type_codes_key_and_class
|
||||
|
||||
|
||||
@@ -45,9 +48,9 @@ def assign_people_to_pre_or_wrt(
|
||||
data={
|
||||
"token": manager_token,
|
||||
"build_living_space_uu_id": person_uu_id,
|
||||
"occupant_type_uu_id": get_occupants_types(occupant_code=occupant_code, requester=requester)[
|
||||
"data"
|
||||
]["uu_id"],
|
||||
"occupant_type_uu_id": get_occupants_types(
|
||||
occupant_code=occupant_code, requester=requester
|
||||
)["data"]["uu_id"],
|
||||
},
|
||||
)
|
||||
print("text", response.text)
|
||||
@@ -99,7 +102,13 @@ def create_decision_book_items_with_occupant_user(
|
||||
|
||||
|
||||
def run_decision_book_items(
|
||||
writers_token, unit_price, info_type_uu_id, is_fixed, requester, start_date=None, end_date=None
|
||||
writers_token,
|
||||
unit_price,
|
||||
info_type_uu_id,
|
||||
is_fixed,
|
||||
requester,
|
||||
start_date=None,
|
||||
end_date=None,
|
||||
):
|
||||
if start_date and end_date:
|
||||
create_decision_book_items_with_occupant_user(
|
||||
@@ -109,7 +118,7 @@ def run_decision_book_items(
|
||||
info_type_uu_id=info_type_uu_id,
|
||||
start_date=start_date,
|
||||
end_date=end_date,
|
||||
requester=requester
|
||||
requester=requester,
|
||||
)
|
||||
else:
|
||||
create_decision_book_items_with_occupant_user(
|
||||
@@ -117,5 +126,5 @@ def run_decision_book_items(
|
||||
unit_price=unit_price,
|
||||
is_fixed=is_fixed,
|
||||
info_type_uu_id=info_type_uu_id,
|
||||
requester=requester
|
||||
requester=requester,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user