Skip to content

Commit

Permalink
ci: debug github action
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Apr 8, 2024
1 parent 6e203d4 commit 54de683
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion tests/test_archives/test_archive_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
VALUE_ID = "edbd6711-0432-430f-a147-08a6ae9df220"


def test_archive_import_values_no_alias(api: BaseAPI):
def test_debug_ci(api: BaseAPI):

resources_folder = Path(TEST_RESOURCES_FOLDER)
if not resources_folder.exists():
Expand All @@ -27,6 +27,28 @@ def test_archive_import_values_no_alias(api: BaseAPI):
f"Resources folder is not a directory: {resources_folder}"
)

def print_directory_contents(path, result_string):
for root, dirs, files in os.walk(path):
level = root.replace(path, "").count(os.sep)
indent = " " * 4 * level
result_string += f"\n{indent}{os.path.basename(root)}/"
subindent = " " * 4 * (level + 1)
for f in files:
result_string += f"\n{subindent}{f}"

return result_string

result_string = print_directory_contents(
resources_folder, f"{resources_folder.as_posix()}"
)

raise Exception(result_string)


def test_archive_import_values_no_alias(api: BaseAPI):

resources_folder = Path(TEST_RESOURCES_FOLDER)

archive_file = resources_folder / "archives" / "nand_true.0.10.kiarchive"

assert not api.list_all_value_ids()
Expand Down

0 comments on commit 54de683

Please sign in to comment.