Skip to content

Commit 3f33db5

Browse files
committed
Test history installation to create history schema
1 parent 2977ad7 commit 3f33db5

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
@@ -0,0 +1,7 @@
1+
from databricks.labs.ucx.progress.install import HistoryInstallation
2+
3+
4+
def test_history_installation_run_creates_history_schema(mock_backend) -> None:
5+
installation = HistoryInstallation(mock_backend, "ucx")
6+
installation.run()
7+
assert "CREATE SCHEMA IF NOT EXISTS `ucx`.`history`" == mock_backend.queries[0]

0 commit comments

Comments
 (0)