Files
OpenBB/tests/openbb_terminal/cryptocurrency/due_diligence/test_santiment_model.py
Henrique Joaquim a37d9032e3 Hotfix/fix black (#4101)
* 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

---------
2023-02-01 12:33:15 +00:00

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)