Skip to content

Commit

Permalink
get some output
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwwarren committed Apr 10, 2024
1 parent 98ed2a0 commit 7155e58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/dynamic_importer/walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@


def walk_files(
root: str, files: str, file_types: List[str]
root: str, files: List, file_types: List[str]
) -> Dict[str, Dict[str, str]]:
walked_files = {}
last_project = None
click.echo(f"Processing files {files} in {root}")
for file in files:
file_path = f"{root}/{file}"
name, file_extension = os.path.splitext(file)
Expand Down
5 changes: 3 additions & 2 deletions src/tests/test_directory_walking.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def test_walk_directories_multiple_file_types(mock_client):
@pytest.mark.timeout(30)
def test_walk_directories_with_exclusion(mock_client):
mock_client = mock.MagicMock() # noqa: F841
runner = CliRunner()
runner = CliRunner(
env={"CLOUDTRUTH_API_HOST": "localhost:8000", "CLOUDTRUTH_API_KEY": "test"},
)
current_dir = pathlib.Path(__file__).parent.resolve()

prompt_responses = [
Expand All @@ -147,7 +149,6 @@ def test_walk_directories_with_exclusion(mock_client):
"--exclude-dirs",
f"{current_dir}/../../samples/dotenvs",
],
env={"CLOUDTRUTH_API_HOST": "localhost:8000", "CLOUDTRUTH_API_KEY": "test"},
input="\n".join(prompt_responses) + "\n" * 3,
catch_exceptions=False,
)
Expand Down

0 comments on commit 7155e58

Please sign in to comment.