diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-10-09 15:35:32 +0200 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-10-11 22:49:46 +0200 |
commit | 545f8ed24124837bf4e55aa34e185270a4b7aeff (patch) | |
tree | adad76b598b917d9ca77ed600dcd62c63af67950 /tests/unit/objects/test_pipelines.py | |
parent | 5a1678f43184bd459132102cc13cf8426fe0449d (diff) | |
download | gitlab-chore/master-to-main.tar.gz |
chore: rename `master` branch to `main`chore/master-to-main
BREAKING CHANGE: As of python-gitlab 3.0.0, the default branch for development
has changed from `master` to `main`.
Diffstat (limited to 'tests/unit/objects/test_pipelines.py')
-rw-r--r-- | tests/unit/objects/test_pipelines.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/objects/test_pipelines.py b/tests/unit/objects/test_pipelines.py index c0b87f2..3412f6d 100644 --- a/tests/unit/objects/test_pipelines.py +++ b/tests/unit/objects/test_pipelines.py @@ -10,7 +10,7 @@ pipeline_content = { "id": 46, "project_id": 1, "status": "pending", - "ref": "master", + "ref": "main", "sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a", "before_sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a", "tag": False, @@ -121,21 +121,21 @@ def resp_get_pipeline_test_report(): def test_get_project_pipeline(project, resp_get_pipeline): pipeline = project.pipelines.get(1) assert isinstance(pipeline, ProjectPipeline) - assert pipeline.ref == "master" + assert pipeline.ref == "main" def test_cancel_project_pipeline(project, resp_cancel_pipeline): pipeline = project.pipelines.get(1, lazy=True) output = pipeline.cancel() - assert output["ref"] == "master" + assert output["ref"] == "main" def test_retry_project_pipeline(project, resp_retry_pipeline): pipeline = project.pipelines.get(1, lazy=True) output = pipeline.retry() - assert output["ref"] == "master" + assert output["ref"] == "main" def test_get_project_pipeline_test_report(project, resp_get_pipeline_test_report): |