Replace default test configuration for `ExchangeRates` to use a no-op Source and bypass :ets. This allows higher level feature tests to run without having to manage GenServer processes when they don’t need Exchange rate information but allows the lower tests to exercise the specific behavior as before. Add `Token.null`. Co-authored-by: jimmay5469 <jimmay5469@gmail.com>pull/173/head
parent
a773062b3a
commit
f7d67b7a86
@ -0,0 +1,10 @@ |
||||
defmodule Explorer.ExchangeRates.Source.NoOpSource do |
||||
@moduledoc false |
||||
|
||||
alias Explorer.ExchangeRates.Source |
||||
|
||||
@behaviour Source |
||||
|
||||
@impl Source |
||||
def fetch_exchange_rates, do: {:ok, []} |
||||
end |
Loading…
Reference in new issue