This repository has been archived by the owner on Feb 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use concrete sample api response to test content
- Loading branch information
1 parent
8028754
commit 11560ff
Showing
2 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
def get_sample_reimbursement_api_response(obj): | ||
return dict( | ||
applicant_id=obj.applicant_id, | ||
batch_number=obj.batch_number, | ||
cnpj_cpf=obj.cnpj_cpf, | ||
congressperson_document=obj.congressperson_document, | ||
congressperson_id=obj.congressperson_id, | ||
congressperson_name=obj.congressperson_name, | ||
document_id=obj.document_id, | ||
document_number=obj.document_number, | ||
document_type=obj.document_type, | ||
document_value=float(obj.document_value), | ||
installment=obj.installment, | ||
issue_date=obj.issue_date.strftime('%Y-%m-%d'), | ||
leg_of_the_trip=obj.leg_of_the_trip, | ||
month=obj.month, | ||
party=obj.party, | ||
passenger=obj.passenger, | ||
all_reimbursement_numbers=obj.all_reimbursement_numbers, | ||
all_reimbursement_values=obj.all_reimbursement_values, | ||
all_net_values=obj.all_net_values, | ||
remark_value=obj.remark_value, | ||
state=obj.state, | ||
subquota_description=obj.subquota_description, | ||
subquota_group_description=obj.subquota_group_description, | ||
subquota_group_id=obj.subquota_group_id, | ||
subquota_id=obj.subquota_id, | ||
supplier=obj.supplier, | ||
term=obj.term, | ||
term_id=obj.term_id, | ||
total_net_value=float(obj.total_net_value), | ||
total_reimbursement_value=obj.total_reimbursement_value, | ||
year=obj.year, | ||
probability=obj.probability, | ||
suspicions=obj.suspicions, | ||
last_update=obj.last_update.strftime('%Y-%m-%dT%H:%M:%SZ'), | ||
available_in_latest_dataset=obj.available_in_latest_dataset, | ||
receipt=dict(fetched=obj.receipt_fetched, url=obj.receipt_url) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters