Skip to content

Commit

Permalink
Add test for env propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcrn committed Nov 3, 2023
1 parent 1f7691b commit d818353
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/binance_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ defmodule BinanceTest do
match_requests_on: [:headers, :request_body] do
assert {:error, {:binance_error, %{code: -2014, msg: "API-key format invalid."}}} =
Binance.Trade.get_open_orders(api_key: "dummy_api_key", api_secret: "hoge")

Application.put_env(:binance, :api_key, "dummy_api_key")

assert {:error, {:binance_error, %{code: -2014, msg: "API-key format invalid."}}} =
Binance.Trade.get_open_orders()
end

ExVCR.Setting.set(:filter_request_headers, existing_setting)
Expand Down

0 comments on commit d818353

Please sign in to comment.