Skip to content

Commit

Permalink
Add debug print statement to test for easy debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Sep 29, 2024
1 parent 931496f commit 3e3c052
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_repositories.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from pathlib import Path
from pathlib import PosixPath

import pytest
Expand All @@ -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()

Expand Down

0 comments on commit 3e3c052

Please sign in to comment.