Skip to content

Commit 2db3d7c

Browse files
committed
Fix lint errors.
1 parent 8cd694f commit 2db3d7c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/integration/test_repos_branch.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ def test_sync_with_upstream(self):
4545
branch = repository.branch("main")
4646
result = branch.sync_with_upstream()
4747

48-
assert (
49-
result["message"]
50-
== "Successfully fetched and fast-forwarded from upstream python:main."
48+
msg = (
49+
"Successfully fetched and fast-forwarded"
50+
"from upstream python:main."
5151
)
52+
assert result["message"] == msg
5253
assert result["merge_type"] == "fast-forward"
5354
assert result["base_branch"] == "python:main"

tests/unit/test_repos_branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class TestBranchRequiresAuth(helper.UnitRequiresAuthenticationHelper):
5555
example_data = get_example_data()
5656

5757
def test_sync_with_upstream(self):
58-
"""Verify that syncing a branch with upstream requires authentication."""
58+
"""Verify that branch syncing with upstream requires authentication."""
5959
self.assert_requires_auth(self.instance.sync_with_upstream)
6060

6161
def test_protect(self):

0 commit comments

Comments
 (0)