implement import-db command (#10040)

* implement import-db command

* generate .dvc file

* update

* fix tests

* pin dbt-fal

* try to run on ci

* use os.chdir

* fix

* revert

* require dbt-core>=1.5

* add db config schema

* remove platformdirs constraints

* use logger.getChild

* improve error messaging

* rename cli flag --export-format to --output-format

* use feature flag for db config

* hide command from dvc commands list

* refactor dependency._get

* remove todo

* refactor dependency._get

* fix dbt installation check
This commit is contained in:
skshetry
2023-11-21 19:38:50 +05:45
committed by GitHub
parent 2b3b15f767
commit fd7c891217
19 changed files with 831 additions and 29 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ def test_stage_update(dvc, mocker):
is_repo_import.return_value = True
with dvc.lock:
stage.update()
reproduce.assert_called_once_with(no_download=None, jobs=None)
reproduce.assert_called_once_with(no_download=None, jobs=None, force=False)
is_repo_import.return_value = False
with pytest.raises(StageUpdateError):