mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
Added test for /currencies route
This commit is contained in:
parent
2b0f134f74
commit
6ea680eeca
1 changed files with 5 additions and 0 deletions
|
@ -576,6 +576,11 @@ class APITestCase(IhatemoneyTestCase):
|
|||
self.assertStatus(400, req)
|
||||
|
||||
def test_currencies(self):
|
||||
# check /currencies for list of supported currencies
|
||||
resp = self.client.get("/api/currencies")
|
||||
self.assertTrue(201, resp.status_code)
|
||||
self.assertIn("XXX", json.loads(resp.data.decode("utf-8")))
|
||||
|
||||
# create project with a default currency
|
||||
resp = self.api_create("raclette", default_currency="EUR")
|
||||
self.assertTrue(201, resp.status_code)
|
||||
|
|
Loading…
Reference in a new issue