From 512972fa1df14df4e208a1182096b1c51b5d38d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 26 Sep 2018 11:51:14 +0200 Subject: =?UTF-8?q?Don=E2=80=99t=20raise=20when=20some=20market=20is=20dis?= =?UTF-8?q?abled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_portfolio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_portfolio.py b/tests/test_portfolio.py index d4e5ab9..cad3095 100644 --- a/tests/test_portfolio.py +++ b/tests/test_portfolio.py @@ -1856,7 +1856,7 @@ class AmountTest(WebMockTestCase): with self.subTest(desc="no ticker for currency"): self.m.get_ticker.return_value = None - self.assertRaises(Exception, amount.in_currency, "ETH", self.m) + self.assertEqual(portfolio.Amount("ETH", 0), amount.in_currency("ETH", self.m)) with self.subTest(desc="nominal case"): self.m.get_ticker.return_value = { -- cgit v1.2.3