Skip to content

Commit

Permalink
fix unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yhilmare committed Jun 17, 2024
1 parent af58c4d commit 4d0035f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_init_project_with_profile_existing_init_succeed(
):
project_name = "test_init_project"
cur_dir = os.getcwd()
profiles_dir = os.getcwd()
try:
mock_get_adapter.return_value = ["oceanbase_mysql"]
mock_confirm.return_value = "y"
Expand All @@ -53,6 +54,7 @@ def test_init_project_with_profile_existing_init_succeed(
args=["init"],
**{
"project_name": project_name,
"profiles_dir": profiles_dir,
},
)
assert dbtRunnerResult(success=True) == actual
Expand All @@ -79,3 +81,4 @@ def test_init_project_with_profile_existing_init_succeed(
if os.getcwd().endswith(project_name):
shutil.rmtree(os.getcwd())
os.chdir(cur_dir)
os.remove(os.path.join(profiles_dir, "profiles.yml"))

0 comments on commit 4d0035f

Please sign in to comment.