aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-09-26 11:51:14 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-09-26 11:51:14 +0200
commit512972fa1df14df4e208a1182096b1c51b5d38d1 (patch)
treeb5f513759e4ea98c06d2a61810533ce4bb609edf /tests
parent6746607a578eca3383ade7fe7a88c39612f4d6e8 (diff)
downloadTrader-512972fa1df14df4e208a1182096b1c51b5d38d1.tar.gz
Trader-512972fa1df14df4e208a1182096b1c51b5d38d1.tar.zst
Trader-512972fa1df14df4e208a1182096b1c51b5d38d1.zip
Don’t raise when some market is disabled
Diffstat (limited to 'tests')
-rw-r--r--tests/test_portfolio.py2
1 files changed, 1 insertions, 1 deletions
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):
1856 with self.subTest(desc="no ticker for currency"): 1856 with self.subTest(desc="no ticker for currency"):
1857 self.m.get_ticker.return_value = None 1857 self.m.get_ticker.return_value = None
1858 1858
1859 self.assertRaises(Exception, amount.in_currency, "ETH", self.m) 1859 self.assertEqual(portfolio.Amount("ETH", 0), amount.in_currency("ETH", self.m))
1860 1860
1861 with self.subTest(desc="nominal case"): 1861 with self.subTest(desc="nominal case"):
1862 self.m.get_ticker.return_value = { 1862 self.m.get_ticker.return_value = {