Fix test_file_as_directory.
This commit is contained in:
parent
d01d2a4865
commit
5ffedb6941
|
|
@ -44,7 +44,7 @@ def is_new_project(directory: str) -> bool:
|
||||||
if not path.exists():
|
if not path.exists():
|
||||||
raise DirectoryNotFoundError(f"Directory does not exist: {directory}")
|
raise DirectoryNotFoundError(f"Directory does not exist: {directory}")
|
||||||
if not path.is_dir():
|
if not path.is_dir():
|
||||||
raise ProjectStateError(f"Path is not a directory: {directory}")
|
raise DirectoryNotFoundError(f"Path is not a directory: {directory}")
|
||||||
|
|
||||||
# Get all files/dirs in the directory, excluding contents of .git
|
# Get all files/dirs in the directory, excluding contents of .git
|
||||||
allowed_items: Set[str] = {'.git', '.gitignore'}
|
allowed_items: Set[str] = {'.git', '.gitignore'}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue