Skip to content

Commit

Permalink
Fix ut test case
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-damle committed Jul 19, 2024
1 parent 62c3a20 commit bc44ad7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/app/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import tempfile

import toml

Expand All @@ -20,12 +20,10 @@ def test_get_pebblo_server_version():

def test_delete_directory():
# make sample directory
app_name = "test_dir"
dir_path = ".pebblo/test_dir"
dir_path = tempfile.mkdtemp()
full_path = get_full_path(dir_path)
os.mkdir(full_path)
response = delete_directory(full_path, app_name)
assert response == f"Application {app_name} has been deleted."
response = delete_directory(full_path, dir_path)
assert response == f"Application {dir_path} has been deleted."


def test_delete_directory_dir_not_exist():
Expand Down

0 comments on commit bc44ad7

Please sign in to comment.