Rename sqlite_history module to history (#17)
* Rename sqlite_history module to history. Drop the sqlite-specific prefix now that history collection is the primary module name across SDK, tests, and docs. Co-authored-by: Cursor <cursoragent@cursor.com> * Address PR review feedback for history module rename. Add a sqlite_history compatibility shim, clarify docs naming, and align the module docstring with the collect-history SQLite scope. Co-authored-by: Cursor <cursoragent@cursor.com> * Remove sqlite_history compatibility shim. The rename to mt5cli.history is intentionally breaking; downstream code should update imports rather than rely on a deprecated re-export path. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
c4232bf44d
commit
756faf747b
@@ -1,4 +1,4 @@
|
||||
"""Tests for mt5cli.sqlite_history module."""
|
||||
"""Tests for mt5cli.history module."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -14,7 +14,7 @@ import pytest
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
from mt5cli.sqlite_history import (
|
||||
from mt5cli.history import (
|
||||
DEFAULT_HISTORY_TIMEFRAMES,
|
||||
append_dataframe,
|
||||
augment_written_columns_from_sqlite,
|
||||
@@ -1024,7 +1024,7 @@ class TestIncrementalIntegration:
|
||||
sqlite3.connect(tmp_path / "no-keys.db") as conn,
|
||||
caplog.at_level(
|
||||
logging.WARNING,
|
||||
logger="mt5cli.sqlite_history",
|
||||
logger="mt5cli.history",
|
||||
),
|
||||
):
|
||||
deduplicate_history_tables(conn, {Dataset.ticks: {"time"}}, {Dataset.ticks})
|
||||
@@ -1059,7 +1059,7 @@ class TestIncrementalIntegration:
|
||||
client = MagicMock()
|
||||
client.copy_rates_range_as_df.return_value = pd.DataFrame()
|
||||
with (
|
||||
caplog.at_level(logging.WARNING, logger="mt5cli.sqlite_history"),
|
||||
caplog.at_level(logging.WARNING, logger="mt5cli.history"),
|
||||
sqlite3.connect(tmp_path / "views-warning.db") as conn,
|
||||
):
|
||||
write_incremental_datasets(
|
||||
+1
-1
@@ -16,6 +16,7 @@ if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
from mt5cli import sdk
|
||||
from mt5cli.history import DEFAULT_HISTORY_TIMEFRAMES
|
||||
from mt5cli.sdk import (
|
||||
Mt5CliClient,
|
||||
account_info,
|
||||
@@ -40,7 +41,6 @@ from mt5cli.sdk import (
|
||||
update_history_with_config,
|
||||
version,
|
||||
)
|
||||
from mt5cli.sqlite_history import DEFAULT_HISTORY_TIMEFRAMES
|
||||
from mt5cli.utils import Dataset
|
||||
|
||||
_DEALS_FIXTURE: dict[str, list[object]] = {
|
||||
|
||||
Reference in New Issue
Block a user