summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2023-09-15 22:33:34 +0200
committerIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2023-09-15 22:33:34 +0200
commit23e50119c60f04be8fbb5bec49467b8bc1037ee8 (patch)
tree199123c20dc33e9d80a3b440a995929e22b29955
parent7fde369f47fd25416d54494640895ebe78de6267 (diff)
Record Quandl Tests
-rw-r--r--openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_cot_fetcher.yaml24
-rw-r--r--openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_sp500_multiples_fetcher.yaml24
-rw-r--r--openbb_sdk/providers/quandl/tests/test_fetchers.py5
3 files changed, 27 insertions, 26 deletions
diff --git a/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_cot_fetcher.yaml b/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_cot_fetcher.yaml
index 67442e52a0b..70ff54786a6 100644
--- a/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_cot_fetcher.yaml
+++ b/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_cot_fetcher.yaml
@@ -6,6 +6,8 @@ interactions:
- gzip, deflate, br
Connection:
- keep-alive
+ User-Agent:
+ - python-requests/2.31.0
accept:
- application/json
request-source:
@@ -13,7 +15,7 @@ interactions:
request-source-version:
- 3.7.0
x-api-token:
- - RkHzt3RB7csDkG-arx_q
+ - MOCK_API_TOKEN
method: GET
uri: https://data.nasdaq.com/api/v3/datasets/CFTC/13874P_FO_L_ALL/data?order=asc
response:
@@ -576,7 +578,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 15 Sep 2023 20:25:03 GMT
+ - Fri, 15 Sep 2023 20:33:15 GMT
ETag:
- W/"5eeac6687ca2a1ddb8444714e36a59c3"
Pragma:
@@ -586,10 +588,10 @@ interactions:
Server:
- openresty
Set-Cookie:
- - visid_incap_2170999=hszYCHipTbSy0sw9xSTAe5+9BGUAAAAAQUIPAAAAAAC6bkJ7X1EirpMZZypNhRII;
- expires=Sat, 14 Sep 2024 06:57:55 GMT; HttpOnly; path=/; Domain=.nasdaq.com
- - nlbi_2170999=6tG+ANIZEjf+DM4tKj7S7QAAAABISKp4UvpjvUmCkmCOq9of; path=/; Domain=.nasdaq.com
- - incap_ses_1539_2170999=nTiaGGjRgD9V4q252KBbFZ+9BGUAAAAAyBidkrzzOGpVfaIbNbXw0Q==;
+ - visid_incap_2170999=KhSGWjloRGOrWq1dUoB3bYu/BGUAAAAAQUIPAAAAAADYGj+VQD+n5SW03MHmWWt3;
+ expires=Sat, 14 Sep 2024 06:57:59 GMT; HttpOnly; path=/; Domain=.nasdaq.com
+ - nlbi_2170999=iklJO8Cl0Q+BzCldKj7S7QAAAABD1r5IVsD9DOeP5vwFZCqK; path=/; Domain=.nasdaq.com
+ - incap_ses_1539_2170999=DSoiHfRL8S3PCLG52KBbFYu/BGUAAAAAj96ZPTA7c/HAa0/ngFz5qw==;
path=/; Domain=.nasdaq.com
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
@@ -600,16 +602,16 @@ interactions:
X-Frame-Options:
- SAMEORIGIN
X-Iinfo:
- - 14-140605531-140605562 NNNY CT(1 8 0) RT(1694809499989 189) q(0 0 0 -1) r(33
- 33) U2
+ - 3-13316846-13316860 NNNY CT(0 1 0) RT(1694809994644 160) q(0 0 0 -1) r(2 2)
+ U2
X-RateLimit-Limit:
- '50000'
X-RateLimit-Remaining:
- - '49996'
+ - '49990'
X-Request-Id:
- - e43de9d2-17fd-4a03-848c-8d9451943de2
+ - 8bd6400d-9cac-49fa-8f90-8a5e54e6a19f
X-Runtime:
- - '0.193255'
+ - '0.173675'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_sp500_multiples_fetcher.yaml b/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_sp500_multiples_fetcher.yaml
index c7ebb51aaab..10d56605d31 100644
--- a/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_sp500_multiples_fetcher.yaml
+++ b/openbb_sdk/providers/quandl/tests/record/http/test_fetchers/test_quandl_sp500_multiples_fetcher.yaml
@@ -6,6 +6,8 @@ interactions:
- gzip, deflate, br
Connection:
- keep-alive
+ User-Agent:
+ - python-requests/2.31.0
accept:
- application/json
request-source:
@@ -13,9 +15,9 @@ interactions:
request-source-version:
- 3.7.0
x-api-token:
- - RkHzt3RB7csDkG-arx_q
+ - MOCK_API_TOKEN
method: GET
- uri: https://data.nasdaq.com/api/v3/datasets/MULTPL/SP500_PE_RATIO_MONTH/data?collapse=monthly&order=asc
+ uri: https://data.nasdaq.com/api/v3/datasets/MULTPL/SP500_PE_RATIO_MONTH/data?order=asc&start_date=&end_date=&collapse=monthly
response:
body:
string: !!binary |
@@ -225,7 +227,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 15 Sep 2023 20:24:59 GMT
+ - Fri, 15 Sep 2023 20:33:14 GMT
ETag:
- W/"a6ee2d258da96c1ce8311105c66f456a"
Pragma:
@@ -235,10 +237,10 @@ interactions:
Server:
- openresty
Set-Cookie:
- - visid_incap_2170999=vEXn6jvtQ8aj+bhWZFVut5u9BGUAAAAAQUIPAAAAAADkhx052ssfzcJZWVEK6EB6;
+ - visid_incap_2170999=g8MzKTNETkuTr4D31eQ/coq/BGUAAAAAQUIPAAAAAACOZXyn84vYIpfsQb8kKXkv;
expires=Sat, 14 Sep 2024 06:57:55 GMT; HttpOnly; path=/; Domain=.nasdaq.com
- - nlbi_2170999=ZkGgKGrKBiTiy+hYKj7S7QAAAACkc1Afh4YqNAjxWyT9yBut; path=/; Domain=.nasdaq.com
- - incap_ses_1539_2170999=EwykD1unVwZZ26252KBbFZu9BGUAAAAA7PGm1bpspDBqhdca/KDC8A==;
+ - nlbi_2170999=9QH7LnOFJFWm8oR/Kj7S7QAAAAB7Arzv2B4iA/LXvL2jtHri; path=/; Domain=.nasdaq.com
+ - incap_ses_1539_2170999=OJH6K5U/PR3ZBrG52KBbFYq/BGUAAAAAWRtstAC+XFLh6Pc6JRkkpA==;
path=/; Domain=.nasdaq.com
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
@@ -249,16 +251,16 @@ interactions:
X-Frame-Options:
- SAMEORIGIN
X-Iinfo:
- - 10-85983570-85983592 NNNN CT(1 6 0) RT(1694809498795 179) q(0 0 0 -1) r(4
- 4) U2
+ - 6-43136158-43136212 NNNN CT(1 17 0) RT(1694809993607 179) q(0 0 1 -1) r(3
+ 3) U2
X-RateLimit-Limit:
- '50000'
X-RateLimit-Remaining:
- - '49997'
+ - '49991'
X-Request-Id:
- - d171f568-35ba-4568-84cd-094be0e340a7
+ - c63f3d07-8702-46b1-9876-b657226e4dde
X-Runtime:
- - '0.250254'
+ - '0.169397'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/openbb_sdk/providers/quandl/tests/test_fetchers.py b/openbb_sdk/providers/quandl/tests/test_fetchers.py
index de793a793ce..bdce5d46509 100644
--- a/openbb_sdk/providers/quandl/tests/test_fetchers.py
+++ b/openbb_sdk/providers/quandl/tests/test_fetchers.py
@@ -10,10 +10,7 @@ test_credentials = obb.user.credentials.__dict__
@pytest.fixture(scope="module")
def vcr_config():
return {
- "filter_headers": [("User-Agent", None)],
- "filter_query_parameters": [
- ("api_key", "MOCK_API_KEY"),
- ],
+ "filter_headers": [("x-api-token", "MOCK_API_TOKEN")],
}