mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 13:01:50 +02:00
Add new fields to tests
This commit is contained in:
parent
6b0848e0f8
commit
bd36999bc1
1 changed files with 16 additions and 0 deletions
|
@ -1530,6 +1530,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"payed_for": ["1", "2"],
|
"payed_for": ["1", "2"],
|
||||||
"amount": "25",
|
"amount": "25",
|
||||||
"external_link": "https://raclette.fr",
|
"external_link": "https://raclette.fr",
|
||||||
|
"original_currency": "USD",
|
||||||
|
"original_amount": "25",
|
||||||
},
|
},
|
||||||
headers=self.get_auth("raclette"),
|
headers=self.get_auth("raclette"),
|
||||||
)
|
)
|
||||||
|
@ -1555,6 +1557,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"amount": 25.0,
|
"amount": 25.0,
|
||||||
"date": "2011-08-10",
|
"date": "2011-08-10",
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
"original_amount": 25.0,
|
||||||
|
"original_currency": "USD",
|
||||||
"external_link": "https://raclette.fr",
|
"external_link": "https://raclette.fr",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1583,6 +1587,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"payed_for": ["1", "2"],
|
"payed_for": ["1", "2"],
|
||||||
"amount": "25",
|
"amount": "25",
|
||||||
"external_link": "https://raclette.fr",
|
"external_link": "https://raclette.fr",
|
||||||
|
"original_amount": "25",
|
||||||
|
"original_currency": "USD",
|
||||||
},
|
},
|
||||||
headers=self.get_auth("raclette"),
|
headers=self.get_auth("raclette"),
|
||||||
)
|
)
|
||||||
|
@ -1602,6 +1608,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"payed_for": ["1", "2"],
|
"payed_for": ["1", "2"],
|
||||||
"amount": "25",
|
"amount": "25",
|
||||||
"external_link": "https://raclette.fr",
|
"external_link": "https://raclette.fr",
|
||||||
|
"original_amount": "25",
|
||||||
|
"original_currency": "USD",
|
||||||
},
|
},
|
||||||
headers=self.get_auth("raclette"),
|
headers=self.get_auth("raclette"),
|
||||||
)
|
)
|
||||||
|
@ -1624,6 +1632,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"amount": 25.0,
|
"amount": 25.0,
|
||||||
"date": "2011-09-10",
|
"date": "2011-09-10",
|
||||||
"external_link": "https://raclette.fr",
|
"external_link": "https://raclette.fr",
|
||||||
|
"original_amount": 25.0,
|
||||||
|
"original_currency": "USD",
|
||||||
"id": 1,
|
"id": 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1674,6 +1684,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"payer": "1",
|
"payer": "1",
|
||||||
"payed_for": ["1", "2"],
|
"payed_for": ["1", "2"],
|
||||||
"amount": input_amount,
|
"amount": input_amount,
|
||||||
|
"original_currency": "USD",
|
||||||
|
"original_amount": input_amount,
|
||||||
},
|
},
|
||||||
headers=self.get_auth("raclette"),
|
headers=self.get_auth("raclette"),
|
||||||
)
|
)
|
||||||
|
@ -1701,6 +1713,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"date": "2011-08-10",
|
"date": "2011-08-10",
|
||||||
"id": id,
|
"id": id,
|
||||||
"external_link": "",
|
"external_link": "",
|
||||||
|
"original_currency": "USD",
|
||||||
|
"original_amount": input_amount,
|
||||||
}
|
}
|
||||||
|
|
||||||
got = json.loads(req.data.decode("utf-8"))
|
got = json.loads(req.data.decode("utf-8"))
|
||||||
|
@ -1843,6 +1857,8 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
"date": "2011-08-10",
|
"date": "2011-08-10",
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"external_link": "",
|
"external_link": "",
|
||||||
|
"original_amount": 25.0,
|
||||||
|
"original_currency": "USD",
|
||||||
}
|
}
|
||||||
got = json.loads(req.data.decode("utf-8"))
|
got = json.loads(req.data.decode("utf-8"))
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
|
Loading…
Reference in a new issue