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_commits.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_commits.py')
| -rw-r--r-- | tests/unit/objects/test_commits.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/objects/test_commits.py b/tests/unit/objects/test_commits.py index 6b98117..2e709b3 100644 --- a/tests/unit/objects/test_commits.py +++ b/tests/unit/objects/test_commits.py @@ -86,7 +86,7 @@ def test_get_commit(project, resp_commit): def test_create_commit(project, resp_create_commit): data = { - "branch": "master", + "branch": "main", "commit_message": "Commit message", "actions": [ { @@ -103,7 +103,7 @@ def test_create_commit(project, resp_create_commit): def test_revert_commit(project, resp_commit): commit = project.commits.get("6b2257ea", lazy=True) - revert_commit = commit.revert(branch="master") + revert_commit = commit.revert(branch="main") assert revert_commit["short_id"] == "8b090c1b" assert revert_commit["title"] == 'Revert "Initial commit"' |
