Skip to content

Commit 47971da

Browse files
[PATCH] Sync tests with updated test repo & manually trigger version bump
1 parent 15f9d24 commit 47971da

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

tests/test_gitmodules_to_project.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

tests/test_read_gitmodules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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):

tests/test_submodule_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)