-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,11 +64,11 @@ def test_can_skip_dot_folder(self): | |
scanned_names = [os.path.basename(source_path) for source_path, _ in scanner.source_paths()] | ||
assert scanned_names == [name_to_include] | ||
|
||
def test_validate_invalid_git_error(self): | ||
testcases = [["https://github.com/roskakori/pygount/"], ["[email protected]:roskakori/pygount"]] | ||
for testcase in testcases: | ||
with analysis.SourceScanner(testcase) as scanner, self.assertRaises(PygountError): | ||
_ = list(scanner.source_paths()) | ||
def test_fails_on_non_repo_url(self): | ||
non_repo_urls = [["https://github.com/roskakori/pygount/"], ["[email protected]:roskakori/pygount"]] | ||
for non_repo_url in non_repo_urls: | ||
with analysis.SourceScanner(non_repo_url) as scanner, pytest.raises(PygountError): | ||
next(scanner.source_paths()) | ||
|
||
def test_can_find_python_files_in_dot(self): | ||
scanner = analysis.SourceScanner(["."], "py") | ||
|