Test unsupported currency on a fixed date with rates
Otherwise RatesNotAvailableError may be raised before. (grafted from 93103c87b287fbb80d6da2871646eaf7bf242edf) --HG-- branch : 6.0
This commit is contained in:
1 parent
6f205d37b5
commit
f77ea682ad
1 file changed
+1
-3
@@ -433,10 +433,8 @@ class ECBtestCase(unittest.TestCase):
|
||||
|
||||
def test_rate_unsupported_currency(self):
|
||||
"Fetch rate for unsupported currency"
|
||||
date = datetime.date.today() - datetime.timedelta(days=2)
|
||||
|
||||
with self.assertRaises(UnsupportedCurrencyError):
|
||||
get_rates('XXX', date)
|
||||
get_rates('XXX', datetime.date(2022, 10, 3))
|
||||
|
||||
|
||||
def suite():
|
||||
|
||||
Reference in new issue
Block a user