File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,16 @@ def test_get_submodules_as_projects_with_gitlab_relative_urls(self):
3333 project = self .gl .projects .get (
3434 'python-gitlab-submodule-test/test-projects/gitlab-relative-urls' )
3535 submodules = list_project_submodules (project , ref = 'main' )
36- submodule_projects = [
36+
37+ existing_submodule_projects = [
3738 submodule_to_project (submodule , self .gl .projects )
38- for submodule in submodules ]
39+ for submodule in submodules [: 4 ] ]
3940 self .assertTrue (all (
4041 isinstance (project , Project )
41- for project in submodule_projects ))
42+ for project in existing_submodule_projects ))
4243 self .assertEqual (
4344 {'1' , '2' , '3' , '4' },
44- {project .name for project in submodule_projects })
45+ {project .name for project in existing_submodule_projects })
4546
4647 def test_get_submodules_as_projects_with_external_urls (self ):
4748 project = self .gl .projects .get (
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ def test_gitmodules_with_gitlab_relative_urls(self):
3131 {'../../dummy-projects/1.git' ,
3232 '../../../python-gitlab-submodule-test/dummy-projects/2.git' ,
3333 './../../../python-gitlab-submodule-test/dummy-projects/3.git' ,
34- './../../dummy-projects/4.git' },
34+ './../../dummy-projects/4.git' ,
35+ './../../missing-repos/5.git' },
3536 {submodule .url for submodule in submodules })
3637
3738 def test_gitmodules_with_external_urls (self ):
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def test_get_submodule_commit_with_relative_urls(self):
7272 submodules = list_project_submodules (inkscape , ref = 'main' )
7373 submodule_projects = [
7474 submodule_to_project (submodule , gl .projects )
75- for submodule in submodules ]
75+ for submodule in submodules [: 4 ] ]
7676 submodule_commits = [
7777 get_submodule_commit (
7878 submodule ,
You can’t perform that action at this time.
0 commit comments