mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 20:23:36 +00:00
* Fix plot look when using eval and add query to choices (#3881)
* convert index to datetime and update choices
* uncomment economy integration test
* fix treasury concat bug
* fix datasets concat on duplciates
* Lock ruff version so that new lints dont break our CI (#3905)
* Lock ruff version so that new lints dont break our CI
* Bumped pre-commit ruff version
* returning always a dataframe
* Revert "returning always a dataframe"
This reverts commit d5dbf3132f.
* black everything
---------
35 lines
815 B
Python
35 lines
815 B
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from openbb_terminal.cryptocurrency.due_diligence import santiment_model
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def vcr_config():
|
|
return {
|
|
"filter_headers": [("Authorization", "MOCK_API_KEY")],
|
|
}
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.parametrize(
|
|
"symbol,dev_activity,interval,start,end",
|
|
[
|
|
("BTC", "True", "1d", "2022-01-10", "2022-03-08"),
|
|
],
|
|
)
|
|
def test_get_github_activity(symbol, dev_activity, interval, start, end, recorder):
|
|
start = start + "T00:00:00Z"
|
|
end = end + "T00:00:00Z"
|
|
df = santiment_model.get_github_activity(
|
|
symbol=symbol,
|
|
dev_activity=dev_activity,
|
|
interval=interval,
|
|
start_date=start,
|
|
end_date=end,
|
|
)
|
|
recorder.capture(df)
|