summaryrefslogtreecommitdiff
path: root/gitlab/tests
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-02-26 20:28:54 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-02-26 20:34:59 +0100
commitf12841fd5bd88f879906386655620c5d0c592470 (patch)
tree8b62a79be239d56d5358d3bef04ebe80385f7e53 /gitlab/tests
parentdba828b9cfca03f6d339329f9b7d49878cf9e11a (diff)
downloadgitlab-feat/mr-pipeline-manager.tar.gz
chore(api): make class names consistent in MR resourcesfeat/mr-pipeline-manager
Diffstat (limited to 'gitlab/tests')
-rw-r--r--gitlab/tests/objects/test_merge_request_pipelines.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/tests/objects/test_merge_request_pipelines.py b/gitlab/tests/objects/test_merge_request_pipelines.py
index b22a6c1..4500163 100644
--- a/gitlab/tests/objects/test_merge_request_pipelines.py
+++ b/gitlab/tests/objects/test_merge_request_pipelines.py
@@ -6,7 +6,7 @@ import re
import pytest
import responses
-from gitlab.v4.objects import MergeRequestPipeline
+from gitlab.v4.objects import ProjectMergeRequestPipeline
pipeline_content = {
"id": 1,
@@ -49,18 +49,18 @@ def test_merge_requests_pipelines_deprecated_raises_warning(
pipelines = project.mergerequests.get(1, lazy=True).pipelines()
assert len(pipelines) == 1
- assert isinstance(pipelines[0], MergeRequestPipeline)
+ assert isinstance(pipelines[0], ProjectMergeRequestPipeline)
assert pipelines[0].sha == pipeline_content["sha"]
def test_list_merge_requests_pipelines(project, resp_list_merge_request_pipelines):
pipelines = project.mergerequests.get(1, lazy=True).pipelines.list()
assert len(pipelines) == 1
- assert isinstance(pipelines[0], MergeRequestPipeline)
+ assert isinstance(pipelines[0], ProjectMergeRequestPipeline)
assert pipelines[0].sha == pipeline_content["sha"]
def test_create_merge_requests_pipelines(project, resp_create_merge_request_pipeline):
pipeline = project.mergerequests.get(1, lazy=True).pipelines.create()
- assert isinstance(pipeline, MergeRequestPipeline)
+ assert isinstance(pipeline, ProjectMergeRequestPipeline)
assert pipeline.sha == pipeline_content["sha"]