mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 22:41:19 +00:00
* Began the fax * Bumped ruff * Fixed a BUNCH of ruff errors * Fixed a lot of ruff errors * Simplify if statements * Fixed black * Updated some stuff * Updated some stuff * A lot more ruff fixes * Added a fix * Added a fix * Fixed mypy * Fixed some stuff * Reverted one thing * Small fix * Small fix * Small fix * Added fix * Added fix * Update requirements
34 lines
880 B
Python
34 lines
880 B
Python
import pytest
|
|
|
|
from openbb_terminal.core.log.generation.settings import (
|
|
AppSettings,
|
|
AWSSettings,
|
|
LogSettings,
|
|
Settings,
|
|
)
|
|
|
|
|
|
@pytest.fixture()
|
|
def settings(tmp_path):
|
|
settings_obj = Settings(
|
|
app_settings=AppSettings(
|
|
commit_hash="MOCK_COMMIT_HASH",
|
|
name="MOCK_NAME",
|
|
identifier="MOCK_IDENTIFIER",
|
|
session_id="MOCK_SESSION_ID",
|
|
user_id="MOCK_USER_ID",
|
|
),
|
|
aws_settings=AWSSettings(
|
|
aws_access_key_id="MOCK_AWS_ACCESS_KEY_ID",
|
|
aws_secret_access_key="MOCK_AWS_ACCESS_KEY", # pragma: allowlist secret # noqa: S106
|
|
),
|
|
log_settings=LogSettings(
|
|
directory=tmp_path,
|
|
frequency="H",
|
|
handler_list=["file"],
|
|
rolling_clock=False,
|
|
verbosity=20,
|
|
),
|
|
)
|
|
return settings_obj
|