diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_history-kwargs4].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_history-kwargs4].yaml index 548ef299627..0fa7be5ee49 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_history-kwargs4].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_history-kwargs4].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getAddressHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=100 + uri: https://api.ethplorer.io/getAddressHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=100 response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_info-kwargs1].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_info-kwargs1].yaml index 9ab41667cd6..f1b6d8b8c2d 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_info-kwargs1].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_address_info-kwargs1].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getAddressInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getAddressInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_decimals-kwargs0].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_decimals-kwargs0].yaml index 9c009446df6..003815aec72 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_decimals-kwargs0].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_decimals-kwargs0].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs7].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs7].yaml index 178ad760ed2..0ef3ff99d4c 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs7].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs7].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenPriceHistoryGrouped/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenPriceHistoryGrouped/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs8].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs8].yaml index 511917e09ab..91bc58238b4 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs8].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_historical_price-kwargs8].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenPriceHistoryGrouped/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenPriceHistoryGrouped/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs6].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs6].yaml index 02c78d24ace..106cd30d3df 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs6].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs6].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=1000 + uri: https://api.ethplorer.io/getTokenHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=1000 response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs7].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs7].yaml index 367305aa1f9..2f27da1f03c 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs7].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_history-kwargs7].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=1000 + uri: https://api.ethplorer.io/getTokenHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=1000 response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_info-kwargs5].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_info-kwargs5].yaml index 320f3b1df70..fd5e33bcb76 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_info-kwargs5].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_token_info-kwargs5].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_token_holders-kwargs3].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_token_holders-kwargs3].yaml index 2693be54697..a5dfcc2ef16 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_token_holders-kwargs3].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_token_holders-kwargs3].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTopTokenHolders/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=100 + uri: https://api.ethplorer.io/getTopTokenHolders/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=100 response: body: string: !!binary | @@ -105,7 +105,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_tokens-kwargs2].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_tokens-kwargs2].yaml index 53f411dd42f..e33238d1311 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_tokens-kwargs2].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_call_func[get_top_tokens-kwargs2].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTopTokens?apiKey=freekey + uri: https://api.ethplorer.io/getTopTokens?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_get_tx_info.yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_get_tx_info.yaml index 143d193665e..471cfecf130 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_get_tx_info.yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_model/test_get_tx_info.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTxInfo/0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6?apiKey=freekey + uri: https://api.ethplorer.io/getTxInfo/0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_history-kwargs3].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_history-kwargs3].yaml index 889bd6bdb0a..fc0400b9752 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_history-kwargs3].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_history-kwargs3].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getAddressHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=100 + uri: https://api.ethplorer.io/getAddressHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=100 response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_info-kwargs0].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_info-kwargs0].yaml index 0da56050461..56e303535a0 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_info-kwargs0].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_address_info-kwargs0].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getAddressInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getAddressInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_historical_prices-kwargs7].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_historical_prices-kwargs7].yaml index e410c24be12..bc9ae5e559e 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_historical_prices-kwargs7].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_historical_prices-kwargs7].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenPriceHistoryGrouped/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenPriceHistoryGrouped/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_history-kwargs6].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_history-kwargs6].yaml index d451b6d1612..65a16d2850c 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_history-kwargs6].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_history-kwargs6].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=1000 + uri: https://api.ethplorer.io/getTokenHistory/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=1000 response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_info-kwargs4].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_info-kwargs4].yaml index d51ab916ad3..48747905a60 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_info-kwargs4].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_token_info-kwargs4].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_token_holders-kwargs2].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_token_holders-kwargs2].yaml index 39e813599d9..a5dfd8c3703 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_token_holders-kwargs2].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_token_holders-kwargs2].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTopTokenHolders/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey&limit=100 + uri: https://api.ethplorer.io/getTopTokenHolders/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY&limit=100 response: body: string: !!binary | @@ -105,7 +105,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=freekey + uri: https://api.ethplorer.io/getTokenInfo/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_tokens-kwargs1].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_tokens-kwargs1].yaml index 9f832636475..47ae439c7e5 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_tokens-kwargs1].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_top_tokens-kwargs1].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTopTokens?apiKey=freekey + uri: https://api.ethplorer.io/getTopTokens?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_tx_info-kwargs5].yaml b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_tx_info-kwargs5].yaml index 2c1c97bed51..ecb501c2911 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_tx_info-kwargs5].yaml +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/cassettes/test_ethplorer_view/test_call_func[display_tx_info-kwargs5].yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - python-requests/2.27.1 method: GET - uri: https://api.ethplorer.io/getTxInfo/0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6?apiKey=freekey + uri: https://api.ethplorer.io/getTxInfo/0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6?apiKey=MOCK_API_KEY response: body: string: !!binary | diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_model.py b/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_model.py index 752b9c68cbf..385fbbc8e49 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_model.py +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_model.py @@ -8,6 +8,13 @@ import pytest from gamestonk_terminal.cryptocurrency.onchain import ethplorer_model +@pytest.fixture(scope="module") +def vcr_config(): + return { + "filter_query_parameters": [("apiKey", "MOCK_API_KEY")], + } + + @pytest.mark.vcr @pytest.mark.parametrize( "func, kwargs", diff --git a/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_view.py b/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_view.py index 16a24b45936..6508cc0dd1a 100644 --- a/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_view.py +++ b/tests/gamestonk_terminal/cryptocurrency/onchain/test_ethplorer_view.py @@ -7,6 +7,13 @@ import pytest from gamestonk_terminal.cryptocurrency.onchain import ethplorer_view +@pytest.fixture(scope="module") +def vcr_config(): + return { + "filter_query_parameters": [("apiKey", "MOCK_API_KEY")], + } + + @pytest.mark.vcr @pytest.mark.parametrize( "func, kwargs",