From 3e3c052728c600f1bfea61ebdc167116a1143a5e Mon Sep 17 00:00:00 2001 From: Jonathan de Bruin Date: Sun, 29 Sep 2024 16:50:23 +0200 Subject: [PATCH] Add debug print statement to test for easy debugging --- tests/test_repositories.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_repositories.py b/tests/test_repositories.py index 0de9f00..15435f4 100644 --- a/tests/test_repositories.py +++ b/tests/test_repositories.py @@ -1,3 +1,4 @@ +from pathlib import Path from pathlib import PosixPath import pytest @@ -8,6 +9,10 @@ def test_get_repositories(location, files, ignored_files, dh_kwargs, tmpdir): datahugger.get(location, tmpdir, **dh_kwargs) + # print the files in the tmpdir (for debugging) + for file in Path(tmpdir).iterdir(): + print(file.relative_to(tmpdir)) + if files: assert PosixPath(tmpdir, files).exists()