tests passing
This commit is contained in:
parent
de8828a9cb
commit
515a4527af
4 changed files with 79 additions and 69 deletions
|
|
@ -7,7 +7,6 @@ from money.currency import Currency, CurrencyHelper
|
|||
from money.money import Money
|
||||
from xecd_rates_client import XecdClient
|
||||
|
||||
from xexe.constants import RATES_SOURCES
|
||||
from xexe.exchange_rates import ExchangeRate
|
||||
|
||||
|
||||
|
|
@ -82,5 +81,5 @@ class XERateFetcher(RateFetcher):
|
|||
)
|
||||
|
||||
|
||||
def build_rate_fetcher(rates_source: str):
|
||||
return RATES_SOURCES[rates_source]()
|
||||
def build_rate_fetcher(rates_source: str, rate_sources_mapping):
|
||||
return rate_sources_mapping[rates_source]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue