Skip to content

Commit 30a9ad1

Browse files
committed
Test history installation to create history records table
1 parent 8d8d213 commit 30a9ad1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/unit/progress/test_install.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ def test_history_installation_run_creates_history_schema(mock_backend) -> None:
55
installation = HistoryInstallation(mock_backend, "ucx")
66
installation.run()
77
assert "CREATE SCHEMA IF NOT EXISTS `ucx`.`history`" == mock_backend.queries[0]
8+
9+
10+
def test_history_installation_run_creates_history_records_table(mock_backend) -> None:
11+
installation = HistoryInstallation(mock_backend, "ucx")
12+
installation.run()
13+
# Dataclass to schema conversion is tested within the lsql package
14+
assert "CREATE TABLE IF NOT EXISTS `ucx`.`history`.`records`" in mock_backend.queries[1]

0 commit comments

Comments
 (0)