|
6 | 6 | class ShedLintTestCase(CliTestCase): |
7 | 7 | def test_valid_repos(self): |
8 | 8 | with self._isolate_repo("single_tool"): |
9 | | - self._check_exit_code(["shed_lint"]) |
| 9 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"]) |
10 | 10 | with self._isolate_repo("multi_repos_nested"): |
11 | 11 | self._check_exit_code(["shed_lint", "--recursive"]) |
12 | 12 | with self._isolate_repo("package_1"): |
13 | | - self._check_exit_code(["shed_lint"]) |
| 13 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"]) |
14 | 14 | with self._isolate_repo("suite_1"): |
15 | | - self._check_exit_code(["shed_lint"]) |
| 15 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"]) |
16 | 16 | with self._isolate_repo("workflow_1"): |
17 | | - self._check_exit_code(["shed_lint"]) |
| 17 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"]) |
18 | 18 |
|
19 | 19 | def test_invalid_repos(self): |
20 | 20 | # And now |
21 | 21 | with self._isolate_repo("bad_readme_rst"): |
22 | | - self._check_exit_code(["shed_lint"], exit_code=1) |
| 22 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=1) |
23 | 23 | with self._isolate_repo("bad_readme_md"): |
24 | | - self._check_exit_code(["shed_lint"], exit_code=0) |
| 24 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=0) |
25 | 25 | with self._isolate_repo("bad_repo_name"): |
26 | | - self._check_exit_code(["shed_lint"], exit_code=1) |
| 26 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=1) |
27 | 27 | with self._isolate_repo("bad_missing_include"): |
28 | | - self._check_exit_code(["shed_lint"], exit_code=1) |
| 28 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=1) |
29 | 29 | with self._isolate_repo("bad_missing_tool_deps"): |
30 | | - self._check_exit_code(["shed_lint"], exit_code=1) |
| 30 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=1) |
31 | 31 | with self._isolate_repo("bad_missing_repo_deps"): |
32 | | - self._check_exit_code(["shed_lint"], exit_code=1) |
| 32 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=1) |
33 | 33 | with self._isolate_repo("bad_package_category"): |
34 | | - self._check_exit_code(["shed_lint"], exit_code=1) |
| 34 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=1) |
35 | 35 | with self._isolate_repo("bad_invalid_yaml"): |
36 | | - self._check_exit_code(["shed_lint"], exit_code=254) |
| 36 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"], exit_code=254) |
37 | 37 |
|
38 | 38 | def test_tool_linting(self): |
39 | 39 | # Make sure bad_invalid_tool_xml only when used with --tools. |
@@ -67,6 +67,6 @@ def test_fail_fast(self): |
67 | 67 |
|
68 | 68 | def test_ensure_metadata(self): |
69 | 69 | with self._isolate_repo("single_tool"): |
70 | | - self._check_exit_code(["shed_lint"]) |
| 70 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url"]) |
71 | 71 | with self._isolate_repo("single_tool_exclude"): |
72 | | - self._check_exit_code(["shed_lint", "--ensure_metadata"], exit_code=1) |
| 72 | + self._check_exit_code(["shed_lint", "--skip", "shed_remote_repository_url", "--ensure_metadata"], exit_code=1) |
0 commit comments